Skip to content

Commit f645394

Browse files
authored
Merge pull request #28188 from microsoftgraph/reezaali-AddUPNToProtectionScopes
Added UPN information to the protectionScopes API
2 parents 826c4e0 + fbd7cc8 commit f645394

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

api-reference/beta/api/userprotectionscopecontainer-compute.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ POST /me/dataSecurityAndGovernance/protectionScopes/compute
4040
POST /users/{usersId}/dataSecurityAndGovernance/protectionScopes/compute
4141
```
4242

43+
>[!NOTE]
44+
> If you only have the user's **userPrincipalName**, use the following URL to retrieve their object ID.
45+
>
46+
> `GET https://graph.microsoft.com/v1.0/users/{userPrincipalName}?$select=id`
47+
4348
## Request headers
4449

4550
| Name | Description |

api-reference/v1.0/api/userprotectionscopecontainer-compute.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ POST /me/dataSecurityAndGovernance/protectionScopes/compute
3838
POST /users/{usersId}/dataSecurityAndGovernance/protectionScopes/compute
3939
```
4040

41+
>[!NOTE]
42+
> If you only have the user's **userPrincipalName**, use the following URL to retrieve their object ID.
43+
>
44+
> `GET https://graph.microsoft.com/v1.0/users/{userPrincipalName}?$select=id`
45+
4146
## Request headers
4247

4348
| Name | Description |

0 commit comments

Comments
 (0)