Delegated Admin consent required Data checked
CrossTenantUserProfileSharing.Read
- Resource
- CrossTenantUserProfileSharing what it applies to
- Access
- Read read only, no changes
- Scope
- (none) only the signed-in user's own data
Allows the application to list and query user profile information associated with the current tenant on behalf of the signed-in user. It also permits the application to export external user data (e.g. customer content or system-generated logs), associated with the current tenant on behalf of the signed-in user.
| Method | API path | Works as | Smaller option | Cmdlet |
|---|---|---|---|---|
| /directory 4 | ||||
| GET | D | — | ||
| GET | D | — | ||
| GET | D | — | ||
| GET | D | — | ||
| No APIs match these filters. | ||||
A = application, D = delegated. Path parameters are shortened to {id} and duplicate paths are merged. Least privileged flags come from Microsoft's docs and permissions reference.
Microsoft Graph PowerShell cmdlets that call the APIs above. Connect with Connect-MgGraph -Scopes CrossTenantUserProfileSharing.Read.
| Cmdlet | Module | Calls |
|---|---|---|
| Get-MgBetaDirectoryInboundSharedUserProfile | Beta.Identity.DirectoryManagement | GET /directory/inboundSharedUserProfiles/{id} |
| Get-MgBetaDirectoryOutboundSharedUserProfile | Beta.Identity.DirectoryManagement | GET /directory/outboundSharedUserProfiles, GET /directory/outboundSharedUserProfiles/{id} |
| Get-MgBetaDirectoryOutboundSharedUserProfileTenant | Beta.Identity.DirectoryManagement | GET /directory/outboundSharedUserProfiles/{id}/tenants |
Granting CrossTenantUserProfileSharing.Read lets an app read these Microsoft Graph resources in your tenant.
inboundSharedUserProfileGraph reference
| Property | Type | Description |
|---|---|---|
| displayName | String | The name displayed in the address book for the user at the time when the sharing record was created. Read-only. |
| homeTenantId | String | The home tenant id of the external user. Read-only. |
| userId | String | The object id of the external user. Read-only. |
| userPrincipalName | String | The user principal name (UPN) of the external user. Read-only. |
outboundSharedUserProfileGraph reference
| Property | Type | Description |
|---|---|---|
| userId | String | The object id of the external user. Read-only. |
tenantReferenceGraph reference
| Property | Type | Description |
|---|---|---|
| tenantId | String | The identifier of the Microsoft Entra tenant. Read-only. Key. |