Forum Discussion

Surfer10's avatar
Surfer10
Copper Contributor
Apr 09, 2021
Solved

add ad users to a ad security group input from msol accountskuid

I am trying this command to first geet the users in Azure who have a standardpack license and then add tthos users to a on-premise AD security group. The users which are retrieved from Azure are corr...
  • Kevin_Morgan's avatar
    Apr 13, 2021

    Surfer10 

     

    The parameter Members accepts string array (comma separated values) or string text. Can you try the below line?

     

    Add-ADGroupMember-Identity O365-E1 -Members $ADUser.UserPrincipalName

     

Resources