Is there a way to send firstName and lastName on the request from SIS to Graph API

Volodymyr Sokoriev 20 Reputation points
2024-04-08T18:21:49.37+00:00

On the Graph documentation - https://learn.microsoft.com/en-us/graph/api/user-post-users?view=graph-rest-1.0&tabs=http
it shows what the request from SIS must contain while creating a user in Microsoft Graph:
POST https://graph.microsoft.com/v1.0/users Content-type: application/json { "accountEnabled": true, "displayName": "Adele Vance", "mailNickname": "AdeleV", "userPrincipalName": "AdeleV@contoso.com", "passwordProfile" : { "forceChangePasswordNextSignIn": true, "password": "xWwvJ]6NMw+bWH-d" } }

Can I pass firstName and lastName there as well as a customer says their previous SIS did that? Thanks

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,614 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 36,976 Reputation points
    2024-04-09T07:28:50.42+00:00

    Hi @Volodymyr Sokoriev

    Of course, their corresponding properties in the Graph User API are givenName and surname, which you can append to the request body to create a user.

    User's image

    User's image

    Hope this helps.

    If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful