| title | riskyUser: confirmSafe |
|---|---|
| description | Confirm one or more riskyUser objects as safe and set their risk level to none. |
| author | dimadonhin |
| ms.date | 05/14/2025 |
| ms.localizationpriority | medium |
| ms.subservice | entra-sign-in |
| doc_type | apiPageType |
Namespace: microsoft.graph
[!INCLUDE beta-disclaimer]
Confirm one or more riskyUser objects as safe. This action sets the targeted user's risk level to none.
[!INCLUDE national-cloud-support]
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
[!INCLUDE permissions-table]
[!INCLUDE rbac-identity-protection-apis-write]
POST /riskyUsers/confirmSafe| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
| Content-Type | application/json. Required. |
In the request body, supply a JSON representation of the parameters.
The following table lists the parameters that are required when you call this action.
| Parameter | Type | Description |
|---|---|---|
| userIds | String collection | Specify the user IDs to confirm as safe in the request body. |
If successful, this action returns a 204 No Content response code.
The following example shows a request.
POST https://graph.microsoft.com/beta/identityProtection/riskyUsers/confirmSafe
Content-Type: application/json
{
"userIds": [
"5a0c76d2-cb57-4ece-9bc1-c323178f116a",
"96609214-09ef-4f80-9d4a-ace5fceecaec",
"05020696-4eb8-45a3-918f-8f8bb7ad6015"
]
}[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following example shows the response.
HTTP/1.1 204 No Content