locked
How to create a User (Work Account) with specified Directory Role in Azure Active Directory Graph Api RRS feed

  • Question

  • I'm trying to find out a way to create a User (Work Account) with specified Directory Role in Azure Active Directory Graph Api using one Ad Graph API call.

    I can make 2 separate calls (1 to create the user and 1 to assign the Directory Role) but is it possible to include the role in the POST user payload and assign the role in the same call?


    Aram Koukia | Blog: koukia.ca | Twitter: @aramkoukia

    Monday, March 14, 2016 10:42 PM

Answers

  • Hello Aram,

    Sorry for the delay. As of today, Azure AD Graph API's does not support creating a user with a non default directory role in one call. Instead, you should make 2 separate calls to create a user and to make the user a member of the Directory Role.

    Hope that answers your query!

    Best Regards

    Sadiqh Ahmed

    ________________________________________________________________________________________________________________

    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful.

    Sunday, March 20, 2016 9:29 AM

All replies

  • Hello Aram,

    We are researching on the query and would get back to you soon on this.

    Appreciate your patience!

    Regards,

    Sadiqh

    Tuesday, March 15, 2016 3:14 PM
  • Hello Aram,

    Sorry for the delay. As of today, Azure AD Graph API's does not support creating a user with a non default directory role in one call. Instead, you should make 2 separate calls to create a user and to make the user a member of the Directory Role.

    Hope that answers your query!

    Best Regards

    Sadiqh Ahmed

    ________________________________________________________________________________________________________________

    If a post answers your question, please click Mark As Answer on that post and Vote as Helpful.

    Sunday, March 20, 2016 9:29 AM
  • Hi Sadiqh

    What do you mean by you should make 2 separate calls to create a user and to make the user a member of the Directory Role?  need reference link with example like create user.

    Thursday, September 7, 2017 8:24 AM