I followed this tutorial to set up a laravel enviroment to work with the Microsoft Graph API. I want to do CRUD operations on Office 365 users, but in the documentation, there is no PHP sample code provided.
This is what the request body should look like:
POST https://graph.microsoft.com/v1.0/users
Content-type: application/json
{
"accountEnabled": true,
"displayName": "displayName-value",
"mailNickname": "mailNickname-value",
"userPrincipalName": "upn-value@tenant-value.onmicrosoft.com",
"passwordProfile" : {
"forceChangePasswordNextSignIn": true,
"password": "password-value"
}
}
However, How do I translate that to a PHP call?