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

AAD Role Assignments #2288

Closed
banned1996 opened this issue Sep 14, 2022 · 3 comments · Fixed by #2319 or #2371
Closed

AAD Role Assignments #2288

banned1996 opened this issue Sep 14, 2022 · 3 comments · Fixed by #2319 or #2371
Labels

Comments

@banned1996
Copy link

Is it possible to define a role assignment with M365DSC?
The properties within AADRoleSetting or AADRoleDefinition do not seem to do that, or am I missing something here?
In EXO, there is a Resource available (EXORoleAssignmentPolicy)

BR

@banned1996
Copy link
Author

banned1996 commented Sep 15, 2022

In addition, I'm having the issue that DSC does not have sufficient privileges when trying to remove a O365User who has assigned roles (does not matter if its eligible or active).
image

(Btw, I also executed Update-M365DSCAllowedGraphScopes to update the permissions)

Update: I tried a workaround: Putting the user into a group which has the role assigned. But unfortunately, this also does not work.

So, I think currently this is not supported.

sandrola added a commit to swisscom/Microsoft365DSC that referenced this issue Sep 16, 2022
@mlhickey
Copy link
Contributor

I believe you need to be PRA/GA when attempting to remove a user who is also a role holder

In addition, I'm having the issue that DSC does not have sufficient privileges when trying to remove a O365User who has assigned roles (does not matter if its eligible or active). image

(Btw, I also executed Update-M365DSCAllowedGraphScopes to update the permissions)

Update: I tried a workaround: Putting the user into a group which has the role assigned. But unfortunately, this also does not work.

So, I think currently this is not supported.

I believe you need to be GA to remove a user who is an administrative role holder.

@NikCharlebois
Copy link
Collaborator

@banned1996 as part of our breaking change release on October 5th, we will be renaming the O365User resource to AADUser and will introduce support for roles.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
4 participants