PendingExternalUserProfile.ReadWrite.All
Allows the app to read and write available properties of pending external user profiles, without a signed-in user.
Permission Details
Read and write all pending external user profiles
Allows the app to read and write available properties of pending external user profiles, without a signed-in user.
8363c2b8-6ff7-420b-9966-c5884c2d48bc
Read and write pending external user profiles
Allows the app to read and write available properties of pending external user profiles, on behalf of the signed-in user.
93a1fb28-c908-4826-904e-0c74ad352b73
Properties
Properties is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
| Property | Type | Description |
|---|---|---|
address |
physicalOfficeAddress |
The office address of the pending external user profile. Inherited from externalProfile. |
createdBy |
StringNullable |
The object ID of the user or principal who created the pending external user profile or invited the external user. Inherited from externalProfile. Read-only. Not nullable. |
createdDateTime |
DateTimeOffsetNullable |
Date and time when this pending external user profile was created. Inherited from externalProfile. Not nullable. Read-only. |
companyName |
StringNullable |
The company name of the pending external user profile. Inherited from externalProfile. Supports the $filter (eq, startswith) query parameter. |
deletedDateTime |
DateTimeOffsetNullable |
Date and time when the pending external user profile was deleted. Always null when the object isn't deleted. Inherited from externalProfile. |
department |
StringNullable |
The department of the pending external user profile. Inherited from externalProfile. |
displayName |
String |
The display name of the pending external user profile. Inherited from externalProfile. |
id |
String |
The unique identifier for the pending external user profile. Not nullable. Read-only. |
isDiscoverable |
BooleanNullable |
Represents whether the pending external user profile is discoverable in the directory. When true, this external profile shows up in Teams search. Inherited from externalProfile. |
isEnabled |
BooleanNullable |
Represents whether the pending external user profile is enabled in the directory. Inherited from externalProfile. |
jobTitle |
StringNullable |
The job title of the external user profile. Inherited from externalProfile. |
phoneNumber |
StringNullable |
The phone number of the pending external user profile. Must be in E.164 format. Inherited from externalProfile. |
supervisorId |
StringNullable |
The object ID of the supervisor of the pending external user profile. Inherited from externalProfile. Supports the $filter (eq, startswith) query parameter. |
JSON Representation
JSON representation is shown from beta metadata because a stable v1.0 schema is not available for this resource mapping.
{
"@odata.type": "#microsoft.graph.pendingExternalUserProfile",
"id": "String (identifier)",
"deletedDateTime": "String (timestamp)",
"createdDateTime": "String (timestamp)",
"createdBy": "String",
"companyName": "String",
"displayName": "String",
"jobTitle": "String",
"isDiscoverable": "Boolean",
"isEnabled": "Boolean",
"department": "String",
"phoneNumber": "String",
"address": {
"@odata.type": "microsoft.graph.physicalOfficeAddress"
},
"supervisorId": "String"
}
Relationships
Relationships metadata is not available for this permission mapping.
View resource documentationGraph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
No API methods available for this version.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsMicrosoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Beta.Models;
var requestBody = new PendingExternalUserProfile
{
PhoneNumber = "+15555555555",
DisplayName = "Bob Henry",
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.Directory.PendingExternalUserProfiles.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const pendingExternalUserProfile = {
phoneNumber: '+15555555555',
displayName: 'Bob Henry'
};
await client.api('/directory/pendingExternalUserProfiles')
.version('beta')
.post(pendingExternalUserProfile);
Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
$params = @{
phoneNumber = "+15555555555"
displayName = "Bob Henry"
}
New-MgBetaDirectoryPendingExternalUserProfile -BodyParameter $params
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph_beta import GraphServiceClient
from msgraph_beta.generated.models.pending_external_user_profile import PendingExternalUserProfile
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = PendingExternalUserProfile(
phone_number = "+15555555555",
display_name = "Bob Henry",
)
result = await graph_client.directory.pending_external_user_profiles.post(request_body)
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Application permissions or delegated permissions and search for PendingExternalUserProfile.ReadWrite.All
Grant Admin Consent
Application permissions always require admin consent.