Forum Discussion
karthik akkur
May 01, 2018Copper Contributor
Group Based Licensing for Multiple Users
I have a scenario where i need to take input from the CSV file for multiple users who have their UserprincipalName, Security Group and Action (Add or Remove).I need to write a power shell script to a...
VasilMichev
May 01, 2018MVP
I'd start by separating the list to two CSVs, one for "add" and one for "remove". Then, I'd replace the group name with a better, unique identifier, as using attributes such as "display name" is a receipt for disaster. Use the objectId of the group, or if it's a mail-enabled one, the SMTP address. Same goes for the user, use property such as the UserPrincipalName.
There are many such script samples available online, just download one and modify it do better suit your needs.
karthik akkur
May 01, 2018Copper Contributor
Thanks for the reply.
Can please direct me to one of those sample scripts which can be used.
- May 02, 2018
Search in the script repository: https://gallery.technet.microsoft.com/