Quantcast
Channel: Azure Active Directory forum
Viewing all articles
Browse latest Browse all 16000

Error adding Service Principal to Role: This role does not exist. Check the name and try again.

$
0
0

Trying to add a Service Principal to the User account administrator role as described in: Windows Azure AD Graph and Role-Based Access Control

PS> add-msolrolemember -roleobjectid fe930be7-5e62-47db-91af-98c3a49a38b1 -RolememberObjectId 0myservi-ce53-42ea-b647-fda53cb65c73 -RoleMemberType User
Add-MsolRoleMember : This role does not exist.
At line:1 char:19
+ add-msolrolemember <<<<  -roleobjectid fe930be7-5e62-47db-91af-98c3a49a38b1 -
RolememberObjectId 0.........-e353-42ea-b647-fda53cb65c73 -RoleMemberType User
    + CategoryInfo          : OperationStopped: (:) [Add-MsolRoleMember], Micr
   osoftOnlineException
    + FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.RoleN
   otFoundException,Microsoft.Online.Administration.Automation.AddRoleMember 

I have tried using the name option -RoleName "User Account Administrator" with the same result.

Thank you


Viewing all articles
Browse latest Browse all 16000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>