Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AzureAD] Add all users to specified group on Azure AD #1

Open
PrzemyslawKlys opened this issue Oct 18, 2018 · 3 comments
Open

[AzureAD] Add all users to specified group on Azure AD #1

PrzemyslawKlys opened this issue Oct 18, 2018 · 3 comments
Labels
enhancement New feature or request

Comments

@PrzemyslawKlys
Copy link
Member

PrzemyslawKlys commented Oct 18, 2018

Something along the lines of:

$Users = Get-AzureADUser -All $true
foreach ($User in $Users) {
    Add-AzureADGroupMember -ObjectId 'Self.pwd.reset' -RefObjectId $User.UserPrincipalName
}
@PrzemyslawKlys PrzemyslawKlys added the enhancement New feature or request label Oct 18, 2018
@PrzemyslawKlys PrzemyslawKlys changed the title Add all users to specified group on Azure AD [AzureAD] Add all users to specified group on Azure AD Oct 18, 2018
@M1kep
Copy link

M1kep commented Jan 6, 2019

Out of curiosity, would this function be used for environments that don’t have AzureAD Sync?

@PrzemyslawKlys
Copy link
Member Author

Yes. Not everyone has AD Sync and sometimes you may want to have synchronization of Office 365 group only with a group in your AD. There are multiple ideas that I have for this but my main problem is how to design the visual part (as in how to give user choice without complicating things.

I have temporarily suspended work on PSAutomator because I hit a problem where I don't know the direction I want to take for the command names and their relations to each other. Feel free to make your suggestion :-)

@M1kep
Copy link

M1kep commented Jan 6, 2019

Fast response! That makes sense. I’ll take a look around and see if there’s anything I can help with. Lots of great modules in your blog post!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants