LifecyclePolicies-AgentId.ReadWrite.All
Allows the app to read, create, update and delete identity lifecycle policies for agent identities in the organization, without a signed-in user.
In short
LifecyclePolicies-AgentId.ReadWrite.All is available as both an application permission and a delegated permission in the Microsoft Graph API, grouped under the LifecyclePolicies-AgentId category. Allows the app to read, create, update and delete identity lifecycle policies for agent identities in the organization, without a signed-in user. It grants read and write access to resources. Application permissions always require admin consent.
Permission Details
Read and write identity lifecycle policies for agent identities
Allows the app to read, create, update and delete identity lifecycle policies for agent identities in the organization, without a signed-in user.
00d1c504-8dc7-461b-8a0b-dc15c8f1bd5a
Read and write identity lifecycle policies for agent identities
Allows the app to read, create, update and delete identity lifecycle policies for agent identities that the signed-in user has access to in the organization.
f2292ca5-46fc-4195-9b4d-16491bf9bf7f
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
accessReviews |
object |
|
appConsent |
object |
|
catalogs |
accessPackageCatalog collection |
|
entitlementManagement |
object |
|
lifecycleWorkflows |
object |
|
privilegedAccess |
object |
|
termsOfUse |
object |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"accessReviews": {
"sample": "value"
},
"appConsent": {
"sample": "value"
},
"catalogs": [
{
"@type": "accessPackageCatalog",
"id": "00000000-0000-0000-0000-000000000000"
}
],
"entitlementManagement": {
"sample": "value"
},
"lifecycleWorkflows": {
"sample": "value"
},
"privilegedAccess": {
"sample": "value"
},
"termsOfUse": {
"sample": "value"
}
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
accessReviews |
accessReviewSet |
Container for the base resources that expose the access reviews API and features. |
appConsent |
appConsent |
Container for base resources that expose the app consent request API and features. Currently exposes only the appConsentRequests resource. |
entitlementManagement |
entitlementManagement |
Container for entitlement management resources, including accessPackageCatalog, connectedOrganization, and entitlementManagementSettings. |
termsOfUse |
termsOfUseContainer |
Container for the resources that expose the terms of use API and its features, including agreements and agreementAcceptances. |
lifecycleWorkflows |
identityGovernance.lifecycleWorkflowsContainer |
Container for Lifecycle Workflow resources, including workflow, customTaskExtension, and lifecycleManagementSettings. |
privilegedAccess |
privilegedAccessRoot |
Container for the base resources that expose the API and features related to Privileged Identity Management (PIM) for Groups. |
catalogs |
accessPackageCatalog collection |
Related catalogs data exposed by this resource. |
permissionsAnalytics |
permissionsAnalyticsAggregation |
Related permissionsAnalytics data exposed by this resource. |
Graph 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 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
using Azure.Identity;
using Microsoft.Graph;
var scopes = new[] { "LifecyclePolicies-AgentId.ReadWrite.All" };
var credential = new InteractiveBrowserCredential(
new InteractiveBrowserCredentialOptions
{
ClientId = "YOUR_CLIENT_ID",
TenantId = "YOUR_TENANT_ID",
RedirectUri = new Uri("http://localhost")
});
var graphClient = new GraphServiceClient(credential, scopes);
var response = await graphClient
.WithUrl("https://graph.microsoft.com/v1.0/identityGovernance/lifecycleWorkflows/lifecyclePolicies")
.GetAsync();
import { Client } from "@microsoft/microsoft-graph-client";
import { InteractiveBrowserCredential } from "@azure/identity";
const credential = new InteractiveBrowserCredential({
clientId: "YOUR_CLIENT_ID",
tenantId: "YOUR_TENANT_ID",
redirectUri: "http://localhost"
});
const token = await credential.getToken(["LifecyclePolicies-AgentId.ReadWrite.All"]);
const client = Client.init({
authProvider: (done) => done(null, token.token)
});
const response = await client.api("/identityGovernance/lifecycleWorkflows/lifecyclePolicies").get();
Connect-MgGraph -Scopes "LifecyclePolicies-AgentId.ReadWrite.All"
Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/identityGovernance/lifecycleWorkflows/lifecyclePolicies"
from azure.identity import InteractiveBrowserCredential
import requests
credential = InteractiveBrowserCredential(
client_id="YOUR_CLIENT_ID",
tenant_id="YOUR_TENANT_ID"
)
token = credential.get_token("LifecyclePolicies-AgentId.ReadWrite.All")
response = requests.get(
"https://graph.microsoft.com/v1.0/identityGovernance/lifecycleWorkflows/lifecyclePolicies",
headers={"Authorization": f"Bearer {token.token}"}
)
print(response.json())
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 LifecyclePolicies-AgentId.ReadWrite.All
Grant Admin Consent
Application permissions always require admin consent.
Frequently asked questions
What is the LifecyclePolicies-AgentId.ReadWrite.All Microsoft Graph permission?
LifecyclePolicies-AgentId.ReadWrite.All is available as both an application permission and a delegated permission in the Microsoft Graph API, grouped under the LifecyclePolicies-AgentId category. Allows the app to read, create, update and delete identity lifecycle policies for agent identities in the organization, without a signed-in user. It grants read and write access to resources. Application permissions always require admin consent. It is mapped to the Microsoft Graph identitygovernance resource type. 15 documented Microsoft Graph REST methods require it.
Is LifecyclePolicies-AgentId.ReadWrite.All an application or a delegated permission?
LifecyclePolicies-AgentId.ReadWrite.All is available as both an application permission (app-only access, no signed-in user) and a delegated permission (access on behalf of a signed-in user).
Does LifecyclePolicies-AgentId.ReadWrite.All require admin consent?
Application permissions always require admin consent.
What is the permission ID (GUID) for LifecyclePolicies-AgentId.ReadWrite.All?
For LifecyclePolicies-AgentId.ReadWrite.All, the application (app role) ID is 00d1c504-8dc7-461b-8a0b-dc15c8f1bd5a, and the delegated (OAuth2 scope) ID is f2292ca5-46fc-4195-9b4d-16491bf9bf7f. These are the real Microsoft Graph identifiers and can be used directly in an app registration manifest.