0 votes

We need to capture the Office365 (if any) on the user account before we disable. These are accounts taht are temps or contractors that we disabled and re enable for a duration of the project.

Example of group name is Office-E3-EXO and we want to capture it to CustomAttributeText31

by (3.2k points)
0

Hello,

Sorry for the confusion, but we are not sure what exactly you are trying to achieve. Do you need to preserve names of specific groups into Adaxes custom attributes each time a user gets removed from them? Are the groups located in on-premises Active Directory? Could you, please, provide a detailed description of the desired workflow with live examples? Any additional details would be very helpful.

0

Sorry, i like to be long winded. Our goal is to take the Office 365 group we use and add that to a custom attribute before we disable the account and remove the group to free up a license.

0

Hello,

Do we understand correctly that you are using group based licensing and to revoke the corresponding license you just need to remove a user from the corresponding on-premises AD group that is synchronized with Microsoft 365 (former office 365)? Will it always be the same group and you just need to remove a user from the group, save the group name to a custom attribute and disable the user in a single operation (e.g. by executing a Custom Command)?

0

Yes we currently use only two groups to determine license level for O365. ( E3-EXO and E1-EXO) It can be either group so we would need to "read" which group is assigned and write the group name to the attribute. Then process the removal of the group and continue the disabling of the account.

0

Hello,

Thank you for specifying. This can be done using a single Custom Command with corresponding actions and conditions. For us to provide you with an example of the command configuration, please, specify what value should be set for the custom attribute in case if a user is a member of both groups.

0

If the user is a member of E3-EXO the customattributetext31 should be E3-EXO, the user is a member of E1-EXO the customattributetext31 should be E1-EXO.

0

Hello,

What if a user is member of both E1-EXO and E3-EXO? Should CustomAttributeText31 be set to E1-EXO, E3-EXO?

0

yes it should put both in there so we can remove the extra license

1 Answer

0 votes
by (294k points)
selected by
Best answer

Hello,

Thank you for the confirmation. It can be done using a Custom Command like the following: image.png

0

Thank you it worked perfectly, i dont know why i always complicate the logic. After reading this i said out loud man that is so easy. :)

As always thank you for you assistance.

Related questions

0 votes
1 answer

I'm trying to retrive the Microsoft 365 License product name in a report as the 'Office 365 License' attribute in Adaxes shows each individual licensed product e.g. ... 365 F3"} } $productnames = $productnames -join ", " $Context.Value = $productnames

asked Jul 27, 2020 by richarddewis (260 points)
0 votes
1 answer

Hi, in our Create User action we have setup a custom binary attribute to upload the staff picture. Is there a way to save the uploaded image to a network share and rename ... out how to save the uploaded image to the share with proper file name. Thank you.

asked Apr 29, 2021 by TJ_Umredkar (140 points)
0 votes
1 answer

Since DIRSYNC doesn't appear to sync UPN correctly and it needs to be changed VIA powershell online. Is there a way to create a custom ... current on-prem UPN? Set-MsolUserPrincipalName -UserPrincipalName oldemail@old.com -NewUserPrincipalName newemail@new.com

asked Aug 11, 2015 by auser42 (340 points)
0 votes
1 answer

Hi, I try to make a report for our SAM to show all users with a specific license. But I fail to even find anything. I tried, among many ... .DirectorySearcher.AppendFilter("(adm-O365AccountLicenses=POWER_BI_STANDARD)") But I get nothing. Please advice.

asked May 20, 2021 by KristofferJ (80 points)
0 votes
1 answer

When attempting to add an O365 license to an AD account via the Adaxes admin console, I noticed that it is missing some license types (e.g. Azure AD Premium P1). In ... Is there a way to configure Adaxes to pull all available license types from O365? Thanks!

asked Oct 22, 2019 by EricB (70 points)
3,589 questions
3,278 answers
8,303 comments
548,122 users