0 votes

Here is what i have been trying with

Set-ADUser -Identity $user -Clear "extensionAttribute5" Set-ADUser -Identity $user -Add @{extensionAttribute5 = "NoLicenseNeeded"}

by (20 points)

1 Answer

0 votes
by (300k points)

Hello,

There is no need to use scripts to achieve the desired behavior. It can be done using the Update the user action in your deprovisioning workflow. For example, if you use a custom command to deprovision users, it will look like the following: image.png For your information, the clear action is not required if you need to only set Extension Attribute 5 to NoLicenseNeeded.

Related questions

0 votes
1 answer

Can you let me know how to simultaneously add a value to a custom attribute to both the AD and Entra user objects? The graphical interface update only does it to the AD user object. Thanks.

asked Mar 25 by msheppard (790 points)
0 votes
1 answer

Hello! Is there a way to clear the AD attribute "thumbnailPhoto" with a checkbox property? I wanted to implement a checkbox in the mask "Modify user" and if the box is checked, clear the attribute. How do I implement this? Much appreciated, Marco

asked Apr 21, 2022 by marco_jandl (60 points)
0 votes
1 answer

how to automatically grant a user's manager access to their network drive and onedrive during a user's deprovisioning. I don't want to manually grant access to the ... -prem file server and onedrive. Can this be incorporated in the user deprovisioning script?

asked Jan 28 by Fausat (20 points)
0 votes
1 answer

We are wanting to display all values entered into a multi value text attribute in an email sent by Adaxes. What we've found is that only the first entry into the array ... Entry" Is there a way to reference the variable so that it displays all entries? Thanks

asked Dec 12, 2024 by msheppard (790 points)
0 votes
1 answer

I have made a deprovision custom command. I cannot change the attribute directReports, so was thinking - i could take the people in the directReports field of the manager ... (and its subordinates) that im running the deprovision custom command from. Any tips?

asked Mar 21, 2024 by EdgarsABG (110 points)
3,667 questions
3,352 answers
8,468 comments
549,173 users