简体   繁体   中英

How can I create new ROLE on Window Azure Active Directory

I tried to add new Role using GraphAPI:

var role = Role.CreateRole("6e5f96e0-c084-452a-99a3-a1ee8d59ec88");

DirectoryService.AddToroles(role);

DirectoryService.SaveChanges();

But it throws an exception: Data contract version does not allow 'Create' operations against instances of resource 'Role'

How can I create new custom ROLE to window Azure Active Directory. I can not find any Cmdlet(PowerShell) : http://technet.microsoft.com/en-US/library/jj151815.aspx support create new ROLE also.

According to the documentation here The only possible action on Roles is GetRoles . So currently you cannot create roles in AAD. You can only consume them.

However there are Groups And you can Create/Update/Delete Group, as well as add or remove members from groups.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM