0 votes

Hi,

We have a scenario in which our E3, windows 10/11 licenses, Exchange Online, etc are assigned by various security groups. We do however assign certain licenses, Power BI for example, manually in O365.

When terminating an employee, I have noticed that we get an error back when the revoke licenses option is selected, which is perfectly understandable due to how we assign, revoke some license. Where the issue lies is that the revoking licensing command is erroring out and not going through and revoking the licenses that can be revoked.

I've noticed that the script here (https://www.adaxes.com/sdk/ManagingMicrosoft365/#:~:text=To%20revoke%20all%20Microsoft%20365,the%20IAdmM365AccountProperties%20interface%20to%20true%20.&text=To%20assign%20or%20revoke%20a,represents%20the%20license%20you%20need.) will remove all licenses mentioned in the variable at the top but is it possible for that script to be changed so that we can pick which licenses not to attempt to revoke?

Thanks, Gareth

by (180 points)
edited by

1 Answer

+1 vote
by (289k points)
selected by
Best answer

Hello Gareth,

It is not necessary to use scripts for this purpose. You can use a built-in action, Active or modify Microsoft 365 account. In the action, use option Modify properties. In the settings, you can add only the licenses that should be revoked. In the following example, only the Microsoft E5 license will be revoked and other license will remain untouched. image.png

0

Perfect, thank you as always!

Related questions

0 votes
1 answer

I have a custom command, copied from the buit-in deprovisioning script, that revokes all licenses and blocks sign in; however, I get an insufficient permissions error on the ... be happening. I can assign licenses with no issues. Any help would be appreciated.

asked Apr 12, 2023 by Michael Long (70 points)
0 votes
1 answer

In the de-provisioning process, I need to remove all users from all Office 365 groups (UnifiedGroups). I tried to adapt this script but unsuccessfully. https://www.adaxes.com/script-repositor ... -s360.htm Is there any way to do this?

asked Sep 22, 2019 by flaviodouglas (70 points)
0 votes
1 answer

Hi Is there a way to select all members of a group when you click on a group? I know you can do this via the Reports section, but it would be easier to just select them all when viewing the group.

asked Jan 28, 2013 by kjesoo (960 points)
0 votes
1 answer

Is there a way for Adaxes to use a user's Microsoft 365 profile pictures instead of having to select a file on a per user basis?

asked Feb 1 by keneth.figueroa (20 points)
0 votes
1 answer

As part of offboarding a user I need to generate a report of all AD groups, Entra groups and all Azure / M365 roles and licenses the user has before they ... about keeping a record of the leavers configured profile to simplify cloning them onto new starters.

asked Jun 24 by dhardyuk (20 points)
3,548 questions
3,238 answers
8,232 comments
547,811 users