How to create a user (work account) with specified directory role in Azure Active Directory Graph API

眉间皱痕 提交于 2019-12-12 00:38:13

问题


I'm trying to find out a way to create a User (work account) with specified DirectoryRole in Azure Active Directory Graph API using one Azure AD Graph API call.

I can make two separate calls (one to create the user and one to assign the DirectoryRole) but is it possible to include the role in the POST user payload and assign the role in the same call?


回答1:


Apparently as of today, the Azure AD Graph REST Api is not able to create a user with a non-default directory role in one call

So we should make 2 separate calls To create a user and a second call to make the user a member of the Directory Role.

I didn't find any documentation around this, but had a chat with someone from AD team and he informed me of this.



来源:https://stackoverflow.com/questions/35999305/how-to-create-a-user-work-account-with-specified-directory-role-in-azure-activ

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!