EngagementRole.ReadWrite.All
Allows the app to assign Viva Engage role to a user, and remove a Viva Engage role from a user without a signed-in user.
Permission Details
Modify Viva Engage role membership
Allows the app to assign Viva Engage role to a user, and remove a Viva Engage role from a user without a signed-in user.
3ede5358-7366-4da8-a2f7-472bf9c7cc34
Modify Viva Engage role membership
Allows the app to assign Viva Engage role to a user, and remove a Viva Engage role from a user behalf of the signed-in user.
4905982d-6459-4ccd-949c-949fefc0a8f2
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
displayName |
String |
The name of the role. |
id |
String |
The unique identifier of the role. Read-only. Inherited from entity |
members |
engagementRoleMember collection |
Users that have this role assigned. |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"@odata.type": "#microsoft.graph.engagementRole",
"displayName": "String",
"id": "String (identifier)"
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
members |
engagementRoleMember collection |
Users that have this role assigned. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph PowerShell v1.0 commands are not available from refreshed Microsoft Learn PowerShell snippets for this permission.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsMicrosoft Graph PowerShell beta commands are not available from refreshed Microsoft Learn PowerShell snippets for this permission.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsCode Examples
// Code snippets are only available for the latest version. Current version is 5.x
// Dependencies
using Microsoft.Graph.Models;
var requestBody = new EngagementRoleMember
{
AdditionalData = new Dictionary<string, object>
{
{
"[email protected]" , "https://graph.microsoft.com/v1.0/users('e8d9f6a2-1c34-4b7a-9f11-2a4d8b7c9e01')"
},
},
};
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
var result = await graphClient.EmployeeExperience.Roles["{engagementRole-id}"].Members.PostAsync(requestBody);
const options = {
authProvider,
};
const client = Client.init(options);
const engagementRoleMember = {
'[email protected]': 'https://graph.microsoft.com/v1.0/users(\'e8d9f6a2-1c34-4b7a-9f11-2a4d8b7c9e01\')'
};
await client.api('/employeeExperience/roles/a40473a5-0fb4-a250-e029-f6fe33d07733/members')
.post(engagementRoleMember);
Connect-MgGraph -Scopes "EngagementRole.ReadWrite.All"
Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/employeeExperience/roles"
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
from msgraph.generated.models.engagement_role_member import EngagementRoleMember
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
request_body = EngagementRoleMember(
additional_data = {
"user@odata_bind" : "https://graph.microsoft.com/v1.0/users('e8d9f6a2-1c34-4b7a-9f11-2a4d8b7c9e01')",
}
)
result = await graph_client.employee_experience.roles.by_engagement_role_id('engagementRole-id').members.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 EngagementRole.ReadWrite.All
Grant Admin Consent
Application permissions always require admin consent.