When using the Azure Active Directory connector Update User card to update certain O365 user attributes, the following error may occur:
{
"_error": true,
"retry_count": 0,
"flo": "181b3302-d4d4-4bfb-91e2-8a1740565f80",
"method": "UmDmzoYmL",
"execution": "ce087f4d-8827-4c41-9eb0-09737be31e9d",
"module": "office365admin.updateUser",
"kind": "HTTP Request Error",
"statusCode": 400,
"headers": {
"client-request-id": "4e1c7e68-ad78-499f-b5b5-d7b1ec2d8a94",
"date": "Wed, 19 Jul 2023 22:23:23 GMT",
"transfer-encoding": "chunked",
"x-ms-ags-diagnostic": "{\"ServerInfo\":{\"DataCenter\":\"West US 2\",\"Slice\":\"E\",\"Ring\":\"1\",\"ScaleUnit\":\"002\",\"RoleInstance\":\"MWH0EPF0005A6B5\"}}",
"content-type": "application/json",
"request-id": "4e1c7e68-ad78-499f-b5b5-d7b1ec2d8a94",
"strict-transport-security": "max-age=31536000"
},
"body": {
"error": {
"code": "BadRequest",
"message": "The request is currently not supported on the targeted entity set",
"innerError": {
"date": "2023-07-19T22:23:23",
"request-id": "4e1c7e68-ad78-499f-b5b5-d7b1ec2d8a94",
"client-request-id": "4e1c7e68-ad78-499f-b5b5-d7b1ec2d8a94"
}
}
},
"message": "400 Bad Request",
"code": 400,
"description": "HTTP Request Error",
"steps": 19,
"source": {
"flo": "office365admin:1.0.158:customAPIAction",
"method": "WSAU_u5tTRsD",
"execution": "a2db812a-52ae-428c-83ab-fe093eaf2fbf",
"module": "http.call"
},
"_fatal": null
}- Okta Workflows
- Microsoft 365 / Office 365 (M365 / O365)
- Azure Active Directory connector
- Update User card
The error will occur when attempting to update any of the following O365 user attributes in the same request with other attributes not listed here:
| Display Name (Update User card) | Microsoft Attribute Name |
|---|---|
| About Me | aboutMe |
| Birthday | birthday |
| Hire Date | hireDate |
| Interests | interests |
| My Site | mySite |
| Past Projects | pastProjects |
| Responsibilities | responsiblities |
| Schools | schools |
| Skills | skills |
For example, updating Birthday by itself is successful. When attempting to update the Birthday in the same request with other attributes not listed in the table above, such as Department, the error will occur:
This is a limitation of the Microsoft Graph API, as documented in Microsoft: Update user, rather than an issue with the Update User card.
When attempting to update any of the attributes listed in the table above, use a separate Update User card that does not include other O365 user attributes. Note that any combination of the attributes listed in the table above can be updated in a single Update User request.
