Microsoft
Use the invitation manager to create an invite, in order to add an external user to the organization.
The invitation process uses the following flow:
Creating an invitation will return a redemption URL in the response (inviteRedeemUrl). The create invitation API can automatically send an email containing the redemption URL to the invited user, by setting the sendInvitationMessage to true. You can also customize the message that will be sent to the invited user. Instead, if you wish to send the redemption URL through some other means, you can set the sendInvitationMessage to false and use the redeem URL from the response to craft your own communication. Currently, there is no API to perform the redemption process. The invited user has to click on the inviteRedeemUrl link sent in the communication in the step above, and go through the interactive redemption process in a browser. Once completed, the invited user becomes an external user in the organization.
| Method | Return Type | Description |
|---|---|---|
| Create invitation | invitation | Write properties and relationships of invitation object. |
| Property | Type | Description |
|---|---|---|
| invitedUserDisplayName | String | The display name of the user being invited. |
| invitedUserEmailAddress | String | The email address of the user being invited. Required. |
| invitedUserMessageInfo | invitedUserMessageInfo | Additional configuration for the message being sent to the invited user, including customizing message text, language and cc recipient list. |
| sendInvitationMessage | Boolean | Indicates whether an email should be sent to the user being invited or not. The default is false. |
| inviteRedirectUrl | String | The URL user should be redirected to once the invitation is redeemed. Required. |
| inviteRedeemUrl | String | The URL user can use to redeem his invitation. Read-Only |
| invitedUserType | String | The userType of the user being invited. By default, this is Guest. You can invite as Member if you're are company administrator. |
| status | String | The status of the invitation. Possible values: Completed, InProgress, and Error |
| Relationship | Type | Description |
|---|---|---|
| invitedUser | User | The user created as part of the invitation creation. Read-Only |
Here is a JSON representation of the resource
{
"invitedUserDisplayName": "string",
"invitedUserEmailAddress": "string",
"invitedUserMessageInfo": {"@odata.type": "microsoft.graph.invitedUserMessageInfo"},
"sendInvitationMessage": false,
"inviteRedirectUrl": "string",
"inviteRedeemUrl": "string",
"status": "string",
"invitedUser": [{"@odata.type": "microsoft.graph.user"}]
}