Forum Discussion
Assign users security group to the desktop application group?
- Oct 25, 2019
eriknu : One way that a lot of folks achieve this is by polling an Azure AD group, then refreshing every morning (or couple of hours). I don't have the exact PowerShell, but basically a script that does:
- Get a list of all users in <AADSecurityGroup>
- Get a list of all users in <RdsAppGroup>
- Find users in <RdsAppGroup> but not <AADSecurityGroup>
- Foreach user, remove the user from <RdsAppGroup>
- Find users in <AADSecurityGroup> but not <RdsAppGroup>
- Foreach user, add the user to the <RdsAppGroup>
eriknu : One way that a lot of folks achieve this is by polling an Azure AD group, then refreshing every morning (or couple of hours). I don't have the exact PowerShell, but basically a script that does:
- Get a list of all users in <AADSecurityGroup>
- Get a list of all users in <RdsAppGroup>
- Find users in <RdsAppGroup> but not <AADSecurityGroup>
- Foreach user, remove the user from <RdsAppGroup>
- Find users in <AADSecurityGroup> but not <RdsAppGroup>
- Foreach user, add the user to the <RdsAppGroup>
- Christian TaverasDec 13, 2019Iron Contributor
- mr2urboJan 16, 2020Copper Contributor
is there a new update/enhancement for this to make things easier? maybe in WVD Management portalA?
- Christian TaverasJan 16, 2020Iron ContributorNone that I am aware of at this time.
- eriknuNov 20, 2019Copper Contributorthanks for this. I would try it at the next demo deployment.