1
votes

I was try to add the external user in Azure active directory. i was added using dashboard and it's send the invitation link and user accept and set the password using link and users was added in active directory.

enter image description here

i was add the guest user and send the invitation link and accept link and set password in azure directory. the globe symbol is a added user of external user

enter image description here

but i was try to add the external user using Rest api in azure active directory.

I was check using Postman

enter image description here

i was checking in microsoft docs create invitation it given url in beta i was checked in that url and i was try to create the user in ad but the response is

{
    "error": {
        "code": "BadRequest",
        "message": "Invalid version",
        "innerError": {
            "request-id": "464934b2-8915-418e-8761-87778059692e",
            "date": "2017-09-19T13:30:26"
        }
    }
}

i was try to create the tenant id in url but it's return

{
    "error": {
        "code": "BadRequest",
        "message": "Resource not found for the segment 'invites'.",
        "innerError": {
            "request-id": "2d940a4e-4ffe-4a3f-91e8-b94cb3536a59",
            "date": "2017-09-19T13:13:49"
        }
    }
}

and i also check in https://www.eliostruyf.com/adding-guests-to-an-office-365-group-via-the-microsoft-graph-api/

it's show response return creation type invitation but i not get expected result.

and i need for add the existing user. with or without invitation in ad. anyone know share the info.

Thanks in Advance.

1

1 Answers

0
votes

The endpoint is https://graph.microsoft.com/beta/invitations :

Invitation - Postman

When acquiring the access token, you should also use a scope like User.Invite.All .

More information about the API: https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/invitation_post