ESC
Type to search...

Application.ReadWrite.All

Export JSON
Export CSV
Copy URL
Print
ApplicationDelegated Read/Write All Resources

Allows the app to create, read, update and delete applications and service principals without a signed-in user. Does not allow management of consent grants.

Delegated Access App-Only Access

Permission Details

Application Permission

Read and write all applications

Allows the app to create, read, update and delete applications and service principals without a signed-in user. Does not allow management of consent grants.

Delegated Permission Admin consent required

Read and write all applications

Allows the app to create, read, update and delete applications and service principals on behalf of the signed-in user. Does not allow management of consent grants.

Properties

Property Type Description
id string The unique identifier for an entity. Read-only.

Relationships

Relationship Type Description
createdOnBehalfOf directoryObject Supports $filter (/$count eq 0, /$count ne 0). Read-only.
extensionProperties extensionProperty collection Read-only. Nullable. Supports $expand and $filter.
federatedIdentityCredentials federatedIdentityCredential collection Federated identities for applications. Supports $expand and $filter.
owners directoryObject collection Directory objects that are owners of the application. Read-only. Nullable. Supports $expand.
tokenIssuancePolicies tokenIssuancePolicy collection Token issuance policies assigned to this application. Supports $expand.
tokenLifetimePolicies tokenLifetimePolicy collection Token lifetime policies assigned to this application. Supports $expand.

Graph Methods

Delegated access App-only access
Methods
GET /applications
GET /applications(appId='{appId}')
GET /applications(appId='{appId}')/extensionProperties
GET /applications(appId='{appId}')/extensionProperties/{extensionPropertyId}
GET /applications(appId='{appId}')/federatedIdentityCredentials
GET /applications(appId='{appId}')/federatedIdentityCredentials/{federatedIdentityCredentialId}
GET /applications(appId='{appId}')/federatedIdentityCredentials/{federatedIdentityCredentialName}
GET /applications(appId='{appId}')/owners
GET /applications(appId='{appId}')/tokenIssuancePolicies
GET /applications(appId='{appId}')/tokenLifetimePolicies
GET /applications/{application ObjectId}/extensionProperties
GET /applications/{application ObjectId}/extensionProperties/{extensionPropertyId}
GET /applications/{applicationObjectId}
GET /applications/{id}/federatedIdentityCredentials
GET /applications/{id}/federatedIdentityCredentials/{federatedIdentityCredentialId}
GET /applications/{id}/federatedIdentityCredentials/{federatedIdentityCredentialName}
GET /applications/{id}/owners
GET /applications/{id}/tokenIssuancePolicies
GET /applications/{id}/tokenLifetimePolicies
GET /applications/delta
GET /servicePrincipals
GET /servicePrincipals(appId='{appId}')
GET /servicePrincipals(appId='{appId}')/appRoleAssignedTo
GET /servicePrincipals(appId='{appId}')/appRoleAssignments
GET /servicePrincipals(appId='{appId}')/claimsMappingPolicies
GET /servicePrincipals(appId='{appId}')/createdObjects
GET /servicePrincipals(appId='{appId}')/homeRealmDiscoveryPolicies
GET /servicePrincipals(appId='{appId}')/memberOf
GET /servicePrincipals(appId='{appId}')/ownedObjects
GET /servicePrincipals(appId='{appId}')/owners
GET /servicePrincipals(appId='{appId}')/tokenLifetimePolicies
GET /servicePrincipals(appId='{appId}')/transitiveMemberOf
GET /servicePrincipals/{id}
GET /servicePrincipals/{id}/appRoleAssignedTo
GET /servicePrincipals/{id}/appRoleAssignments
GET /servicePrincipals/{id}/claimsMappingPolicies
GET /servicePrincipals/{id}/createdObjects
GET /servicePrincipals/{id}/homeRealmDiscoveryPolicies
GET /servicePrincipals/{id}/memberOf
GET /servicePrincipals/{id}/ownedObjects
GET /servicePrincipals/{id}/owners
GET /servicePrincipals/{id}/tokenLifetimePolicies
GET /servicePrincipals/{id}/transitiveMemberOf
GET /servicePrincipals/{servicePrincipalsId}/remoteDesktopSecurityConfiguration
GET /servicePrincipals/{servicePrincipalsId}/remoteDesktopSecurityConfiguration/targetDeviceGroups
GET /servicePrincipals/{servicePrincipalsId}/remoteDesktopSecurityConfiguration/targetDeviceGroups/{targetDeviceGroupId}
GET /servicePrincipals/delta
POST /applications
POST /applications(appId='{appId}')/addKey
POST /applications(appId='{appId}')/addPassword
POST /applications(appId='{appId}')/extensionProperties
POST /applications(appId='{appId}')/federatedIdentityCredentials
POST /applications(appId='{appId}')/owners/$ref
POST /applications(appId='{appId}')/removeKey
POST /applications(appId='{appId}')/removePassword
POST /applications(appId='{appId}')/setVerifiedPublisher
POST /applications(appId='{appId}')/tokenIssuancePolicies/$ref
POST /applications(appId='{appId}')/tokenLifetimePolicies/$ref
POST /applications(appId='{appId}')/unsetVerifiedPublisher
POST /applications/{application ObjectId}/extensionProperties
POST /applications/{id}/addKey
POST /applications/{id}/addPassword
POST /applications/{id}/federatedIdentityCredentials
POST /applications/{id}/owners/$ref
POST /applications/{id}/removeKey
POST /applications/{id}/removePassword
POST /applications/{id}/setVerifiedPublisher
POST /applications/{id}/tokenIssuancePolicies/$ref
POST /applications/{id}/tokenLifetimePolicies/$ref
POST /applications/{id}/unsetVerifiedPublisher
POST /applicationTemplates/{applicationTemplate-id}/instantiate
POST /directory/deletedItems/{id}/restore
POST /directoryObjects/{id}/checkMemberGroups
POST /directoryObjects/{id}/checkMemberObjects
POST /directoryObjects/{id}/getMemberGroups
POST /directoryObjects/{id}/getMemberObjects
POST /groups/{group-id}/members/$ref
POST /schemaExtensions
POST /servicePrincipals
POST /servicePrincipals(appId='{appId}')/addKey
POST /servicePrincipals(appId='{appId}')/addPassword
POST /servicePrincipals(appId='{appId}')/addTokenSigningCertificate
POST /servicePrincipals(appId='{appId}')/claimsMappingPolicies/$ref
POST /servicePrincipals(appId='{appId}')/homeRealmDiscoveryPolicies/$ref
POST /servicePrincipals(appId='{appId}')/owners/$ref
POST /servicePrincipals(appId='{appId}')/removeKey
POST /servicePrincipals(appId='{appId}')/removePassword
POST /servicePrincipals(appId='{appId}')/tokenLifetimePolicies/$ref
POST /serviceprincipals/{id}/addKey
POST /servicePrincipals/{id}/addPassword
POST /servicePrincipals/{id}/addTokenSigningCertificate
POST /servicePrincipals/{id}/claimsMappingPolicies/$ref
POST /servicePrincipals/{id}/homeRealmDiscoveryPolicies/$ref
POST /servicePrincipals/{id}/owners/$ref
POST /serviceprincipals/{id}/removeKey
POST /servicePrincipals/{id}/removePassword
POST /servicePrincipals/{id}/tokenLifetimePolicies/$ref
POST /servicePrincipals/{servicePrincipalsId}/remoteDesktopSecurityConfiguration/targetDeviceGroups
PATCH /applications(appId='{appId}')
PATCH /applications(appId='{appId}')/federatedIdentityCredentials(name='{name}')
PATCH /applications(appId='{appId}')/federatedIdentityCredentials/{federatedIdentityCredentialId}
PATCH /applications(appId='{appId}')/federatedIdentityCredentials/{federatedIdentityCredentialName}
PATCH /applications(uniqueName='{uniqueName}')
PATCH /applications/{applicationObjectId}
PATCH /applications/{id}/federatedIdentityCredentials(name='{name}')
PATCH /applications/{id}/federatedIdentityCredentials/{federatedIdentityCredentialId}
PATCH /applications/{id}/federatedIdentityCredentials/{federatedIdentityCredentialName}
PATCH /groups/{group-id}
PATCH /schemaExtensions/{id}
PATCH /servicePrincipals(appId='{appId}')
PATCH /servicePrincipals(appId='appId')
PATCH /servicePrincipals/{id}
PATCH /servicePrincipals/{servicePrincipalsId}/remoteDesktopSecurityConfiguration
PATCH /servicePrincipals/{servicePrincipalsId}/remoteDesktopSecurityConfiguration/targetDeviceGroups/{targetDeviceGroupId}
DELETE /applications(appId='{appId}')
DELETE /applications(appId='{appId}')/extensionProperties/{extensionPropertyId}
DELETE /applications(appId='{appId}')/federatedIdentityCredentials/{federatedIdentityCredentialId}
DELETE /applications(appId='{appId}')/federatedIdentityCredentials/{federatedIdentityCredentialName}
DELETE /applications(appId='{appId}')/owners/{id}/$ref
DELETE /applications(appId='{appId}')/tokenIssuancePolicies/{id}/$ref
DELETE /applications(appId='{appId}')/tokenLifetimePolicies/{tokenLifetimePolicyId}/$ref
DELETE /applications/{application ObjectId}/extensionProperties/{extensionPropertyId}
DELETE /applications/{applicationObjectId}
DELETE /applications/{applicationObjectId}/tokenLifetimePolicies/{tokenLifetimePolicyId}/$ref
DELETE /applications/{id}/federatedIdentityCredentials/{federatedIdentityCredentialId}
DELETE /applications/{id}/federatedIdentityCredentials/{federatedIdentityCredentialName}
DELETE /applications/{id}/owners/{id}/$ref
DELETE /applications/{id}/tokenIssuancePolicies/{id}/$ref
DELETE /directory/deletedItems/{id}
DELETE /directoryObjects/{id}
DELETE /schemaExtensions/{id}
DELETE /servicePrincipals(appId='{appId}')
DELETE /servicePrincipals(appId='{appId}')/claimsMappingPolicies/{id}/$ref
DELETE /servicePrincipals(appId='{appId}')/homeRealmDiscoveryPolicies/{id}/$ref
DELETE /servicePrincipals(appId='{appId}')/owners/{id}/$ref
DELETE /servicePrincipals(appId='{appId}')/tokenLifetimePolicies/{tokenLifetimePolicyId}/$ref
DELETE /servicePrincipals/{id}
DELETE /servicePrincipals/{id}/claimsMappingPolicies/{id}/$ref
DELETE /servicePrincipals/{id}/homeRealmDiscoveryPolicies/{id}/$ref
DELETE /serviceprincipals/{id}/owners/{id}/$ref
DELETE /servicePrincipals/{servicePrincipalObjectId}/tokenLifetimePolicies/{tokenLifetimePolicyId}/$ref
DELETE /servicePrincipals/{servicePrincipalsId}/remoteDesktopSecurityConfiguration/$ref
DELETE /servicePrincipals/{servicePrincipalsId}/remoteDesktopSecurityConfiguration/targetDeviceGroups/{targetDeviceGroupId}/$ref
Methods
GET /applications
GET /applications(appId='{appId}')
GET /applications(appId='{appId}')/extensionProperties
GET /applications(appId='{appId}')/extensionProperties/{extensionPropertyId}
GET /applications(appId='{appId}')/federatedIdentityCredentials
GET /applications(appId='{appId}')/federatedIdentityCredentials/{federatedIdentityCredentialId}
GET /applications(appId='{appId}')/federatedIdentityCredentials/{federatedIdentityCredentialName}
GET /applications(appId='{appId}')/owners
GET /applications(appId='{appId}')/tokenIssuancePolicies
GET /applications(appId='{appId}')/tokenLifetimePolicies
GET /applications/{application ObjectId}/extensionProperties
GET /applications/{application ObjectId}/extensionProperties/{extensionPropertyId}
GET /applications/{applicationObjectId}
GET /applications/{applicationObjectId}/onPremisesPublishing/segmentsConfiguration/microsoft.graph.ipSegmentConfiguration/applicationSegments
GET /applications/{applicationObjectId}/onPremisesPublishing/segmentsConfiguration/microsoft.graph.ipSegmentConfiguration/applicationSegments/{applicationSegment-id}
GET /applications/{id}/federatedIdentityCredentials
GET /applications/{id}/federatedIdentityCredentials/{federatedIdentityCredentialId}
GET /applications/{id}/federatedIdentityCredentials/{federatedIdentityCredentialName}
GET /applications/{id}/owners
GET /applications/{id}/tokenIssuancePolicies
GET /applications/{id}/tokenLifetimePolicies
GET /applications/delta
GET /applications/microsoft.graph.agentIdentityBlueprint
GET /servicePrincipals
GET /servicePrincipals(appId='{appId}')
GET /servicePrincipals(appId='{appId}')/tokenLifetimePolicies
GET /servicePrincipals/{id}
GET /servicePrincipals/{id}/appRoleAssignedTo
GET /servicePrincipals/{id}/appRoleAssignments
GET /servicePrincipals/{id}/claimsMappingPolicies
GET /servicePrincipals/{id}/createdObjects
GET /servicePrincipals/{id}/homeRealmDiscoveryPolicies
GET /servicePrincipals/{id}/memberOf
GET /servicePrincipals/{id}/ownedObjects
GET /servicePrincipals/{id}/owners
GET /servicePrincipals/{id}/tokenLifetimePolicies
GET /servicePrincipals/{id}/transitiveMemberOf
GET /servicePrincipals/{servicePrincipalsId}/remoteDesktopSecurityConfiguration
GET /servicePrincipals/{servicePrincipalsId}/remoteDesktopSecurityConfiguration/targetDeviceGroups
GET /servicePrincipals/{servicePrincipalsId}/remoteDesktopSecurityConfiguration/targetDeviceGroups/{targetDeviceGroupId}
GET /servicePrincipals/delta
GET /servicePrincipals/microsoft.graph.agentIdentity
GET /servicePrincipals/microsoft.graph.agentIdentityBlueprintPrincipal
POST /applications
POST /applications(appId='{appId}')/addKey
POST /applications(appId='{appId}')/addPassword
POST /applications(appId='{appId}')/extensionProperties
POST /applications(appId='{appId}')/federatedIdentityCredentials
POST /applications(appId='{appId}')/owners/$ref
POST /applications(appId='{appId}')/removeKey
POST /applications(appId='{appId}')/removePassword
POST /applications(appId='{appId}')/setVerifiedPublisher
POST /applications(appId='{appId}')/tokenIssuancePolicies/$ref
POST /applications(appId='{appId}')/tokenLifetimePolicies/$ref
POST /applications(appId='{appId}')/unsetVerifiedPublisher
POST /applications/{application ObjectId}/extensionProperties
POST /applications/{applicationObjectId}/onPremisesPublishing/segmentsConfiguration/microsoft.graph.ipSegmentConfiguration/applicationSegments
POST /applications/{id}/addKey
POST /applications/{id}/addPassword
POST /applications/{id}/federatedIdentityCredentials
POST /applications/{id}/microsoft.graph.agentIdentityBlueprint/sponsors/$ref
POST /applications/{id}/owners/$ref
POST /applications/{id}/removeKey
POST /applications/{id}/removePassword
POST /applications/{id}/setVerifiedPublisher
POST /applications/{id}/tokenIssuancePolicies/$ref
POST /applications/{id}/tokenLifetimePolicies/$ref
POST /applications/{id}/unsetVerifiedPublisher
POST /applicationTemplates/{applicationTemplate-id}/instantiate
POST /directory/deleteditems/{id}/restore
POST /directoryObjects/{id}/checkMemberGroups
POST /directoryObjects/{id}/checkMemberObjects
POST /directoryObjects/{id}/getMemberGroups
POST /directoryObjects/{id}/getMemberObjects
POST /groups/{group-id}/members/$ref
POST /groups/{groupsId}/deletePasswordSingleSignOnCredentials
POST /groups/{groupsId}/getPasswordSingleSignOnCredentials
POST /schemaExtensions
POST /servicePrincipals
POST /servicePrincipals(appId='{appId}')/addKey
POST /servicePrincipals(appId='{appId}')/addPassword
POST /servicePrincipals(appId='{appId}')/addTokenSigningCertificate
POST /servicePrincipals(appId='{appId}')/claimsMappingPolicies/$ref
POST /servicePrincipals(appId='{appId}')/createPasswordSingleSignOnCredentials
POST /servicePrincipals(appId='{appId}')/deletePasswordSingleSignOnCredentials
POST /servicePrincipals(appId='{appId}')/getPasswordSingleSignOnCredentials
POST /servicePrincipals(appId='{appId}')/homeRealmDiscoveryPolicies/$ref
POST /servicePrincipals(appId='{appId}')/owners/$ref
POST /serviceprincipals(appId='{appId}')/removeKey
POST /servicePrincipals(appId='{appId}')/removePassword
POST /servicePrincipals(appId='{appId}')/tokenLifetimePolicies/$ref
POST /servicePrincipals(appId='{appId}')/updatePasswordSingleSignOnCredentials
POST /servicePrincipals/{id}/addKey
POST /servicePrincipals/{id}/addPassword
POST /servicePrincipals/{id}/addTokenSigningCertificate
POST /servicePrincipals/{id}/claimsMappingPolicies/$ref
POST /servicePrincipals/{id}/createPasswordSingleSignOnCredentials
POST /servicePrincipals/{id}/deletePasswordSingleSignOnCredentials
POST /servicePrincipals/{id}/getPasswordSingleSignOnCredentials
POST /servicePrincipals/{id}/homeRealmDiscoveryPolicies/$ref
POST /servicePrincipals/{id}/owners/$ref
POST /servicePrincipals/{id}/permissionGrantPreApprovalPolicies/$ref
POST /serviceprincipals/{id}/removeKey
POST /servicePrincipals/{id}/removePassword
POST /servicePrincipals/{id}/tokenLifetimePolicies/$ref
POST /servicePrincipals/{id}/updatePasswordSingleSignOnCredentials
POST /servicePrincipals/{servicePrincipalsId}/remoteDesktopSecurityConfiguration/targetDeviceGroups
POST /users/{usersId}/deletePasswordSingleSignOnCredentials
POST /users/{usersId}/getPasswordSingleSignOnCredentials
PATCH /applications(appId='{appId}')
PATCH /applications(appId='{appId}')/federatedIdentityCredentials(name='{name}')
PATCH /applications(appId='{appId}')/federatedIdentityCredentials/{federatedIdentityCredentialId}
PATCH /applications(appId='{appId}')/federatedIdentityCredentials/{federatedIdentityCredentialName}
PATCH /applications(uniqueName='{uniqueName}')
PATCH /applications/{applicationObjectId}
PATCH /applications/{applicationObjectId}/onPremisesPublishing/segmentsConfiguration/microsoft.graph.ipSegmentConfiguration/applicationSegments/{ipApplicationSegmentID}
PATCH /applications/{id}/federatedIdentityCredentials(name='{name}')
PATCH /applications/{id}/federatedIdentityCredentials/{federatedIdentityCredentialId}
PATCH /applications/{id}/federatedIdentityCredentials/{federatedIdentityCredentialName}
PATCH /groups/{group-id}
PATCH /schemaExtensions/{id}
PATCH /servicePrincipals(appId='{appId}')
PATCH /servicePrincipals(appId='appId')
PATCH /servicePrincipals/{id}
PATCH /servicePrincipals/{servicePrincipalsId}/remoteDesktopSecurityConfiguration
PATCH /servicePrincipals/{servicePrincipalsId}/remoteDesktopSecurityConfiguration/targetDeviceGroups/{targetDeviceGroupId}
DELETE /applications(appId='{appId}')
DELETE /applications(appId='{appId}')/extensionProperties/{extensionPropertyId}
DELETE /applications(appId='{appId}')/federatedIdentityCredentials/{federatedIdentityCredentialId}
DELETE /applications(appId='{appId}')/federatedIdentityCredentials/{federatedIdentityCredentialName}
DELETE /applications(appId='{appId}')/owners/{id}/$ref
DELETE /applications(appId='{appId}')/tokenLifetimePolicies/{tokenLifetimePolicyId}/$ref
DELETE /applications/{application ObjectId}/extensionProperties/{extensionPropertyId}
DELETE /applications/{applicationObjectId}
DELETE /applications/{applicationObjectId}/onPremisesPublishing/segmentsConfiguration/microsoft.graph.ipSegmentConfiguration/applicationSegments/{ipApplicationSegmentID}
DELETE /applications/{applicationObjectId}/tokenLifetimePolicies/{tokenLifetimePolicyId}/$ref
DELETE /applications/{id}/federatedIdentityCredentials/{federatedIdentityCredentialId}
DELETE /applications/{id}/federatedIdentityCredentials/{federatedIdentityCredentialName}
DELETE /applications/{id}/microsoft.graph.agentIdentityBlueprint/sponsors/{sponsorObjectId}/$ref
DELETE /applications/{id}/owners/{id}/$ref
DELETE /applications/{id}/tokenIssuancePolicies/{id}/$ref
DELETE /directory/deleteditems/{id}
DELETE /directoryObjects/{id}
DELETE /schemaExtensions/{id}
DELETE /servicePrincipals(appId='{appId}')
DELETE /servicePrincipals(appId='{appId}')/claimsMappingPolicies/{id}/$ref
DELETE /servicePrincipals(appId='{appId}')/homeRealmDiscoveryPolicies/{policyId}/$ref
DELETE /servicePrincipals(appId='{appId}')/tokenLifetimePolicies/{tokenLifetimePolicyId}/$ref
DELETE /servicePrincipals/{{ servicePrincipal id }}/permissionGrantPreApprovalPolicies/{{ policy id }}/$ref
DELETE /servicePrincipals/{id}
DELETE /servicePrincipals/{id}/claimsMappingPolicies/{id}/$ref
DELETE /servicePrincipals/{id}/homeRealmDiscoveryPolicies/{policyId}/$ref
DELETE /servicePrincipals/{id}/owners/{id}/$ref
DELETE /servicePrincipals/{servicePrincipalObjectId}/tokenLifetimePolicies/{tokenLifetimePolicyId}/$ref
DELETE /servicePrincipals/{servicePrincipalsId}/remoteDesktopSecurityConfiguration/$ref
DELETE /servicePrincipals/{servicePrincipalsId}/remoteDesktopSecurityConfiguration/targetDeviceGroups/{targetDeviceGroupId}/$ref
Commands
Add-MgApplicationKey
Add-MgApplicationPassword
Add-MgServicePrincipalKey
Add-MgServicePrincipalPassword
Add-MgServicePrincipalTokenSigningCertificate
Clear-MgApplicationVerifiedPublisher
Confirm-MgUserMemberGroup
Confirm-MgUserMemberObject
Get-MgApplication
Get-MgApplicationByAppId
Get-MgApplicationDelta
Get-MgApplicationExtensionProperty
Get-MgApplicationFederatedIdentityCredential
Get-MgApplicationOwner
Get-MgApplicationTokenIssuancePolicy
Get-MgApplicationTokenLifetimePolicy
Get-MgDirectoryObjectMemberObject
Get-MgServicePrincipal
Get-MgServicePrincipalAppRoleAssignedTo
Get-MgServicePrincipalAppRoleAssignment
Get-MgServicePrincipalClaimMappingPolicy
Get-MgServicePrincipalCreatedObject
Get-MgServicePrincipalDelta
Get-MgServicePrincipalHomeRealmDiscoveryPolicy
Get-MgServicePrincipalMemberOf
Get-MgServicePrincipalOwnedObject
Get-MgServicePrincipalOwner
Get-MgServicePrincipalRemoteDesktopSecurityConfiguration
Get-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup
Get-MgServicePrincipalTokenLifetimePolicy
Get-MgServicePrincipalTransitiveMemberOf
Get-MgUserMemberGroup
Invoke-MgInstantiateApplicationTemplate
New-MgApplication
New-MgApplicationExtensionProperty
New-MgApplicationFederatedIdentityCredential
New-MgApplicationOwnerByRef
New-MgApplicationTokenIssuancePolicyByRef
New-MgApplicationTokenLifetimePolicyByRef
New-MgSchemaExtension
New-MgServicePrincipal
New-MgServicePrincipalClaimMappingPolicyByRef
New-MgServicePrincipalHomeRealmDiscoveryPolicyByRef
New-MgServicePrincipalOwnerByRef
New-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup
New-MgServicePrincipalTokenLifetimePolicyByRef
Remove-MgApplication
Remove-MgApplicationExtensionProperty
Remove-MgApplicationFederatedIdentityCredential
Remove-MgApplicationKey
Remove-MgApplicationOwnerDirectoryObjectByRef
Remove-MgApplicationPassword
Remove-MgApplicationTokenIssuancePolicyTokenIssuancePolicyByRef
Remove-MgApplicationTokenLifetimePolicyTokenLifetimePolicyByRef
Remove-MgDirectoryDeletedItem
Remove-MgDirectoryObject
Remove-MgSchemaExtension
Remove-MgServicePrincipal
Remove-MgServicePrincipalClaimMappingPolicyClaimMappingPolicyByRef
Remove-MgServicePrincipalHomeRealmDiscoveryPolicyHomeRealmDiscoveryPolicyByRef
Remove-MgServicePrincipalKey
Remove-MgServicePrincipalOwnerDirectoryObjectByRef
Remove-MgServicePrincipalPassword
Remove-MgServicePrincipalRemoteDesktopSecurityConfiguration
Remove-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup
Remove-MgServicePrincipalTokenLifetimePolicyTokenLifetimePolicyByRef
Restore-MgDirectoryDeletedItem
Set-MgApplicationVerifiedPublisher
Update-MgApplication
Update-MgApplicationByUniqueName
Update-MgApplicationFederatedIdentityCredential
Update-MgApplicationFederatedIdentityCredentialByName
Update-MgGroup
Update-MgSchemaExtension
Update-MgServicePrincipal
Update-MgServicePrincipalByAppId
Update-MgServicePrincipalRemoteDesktopSecurityConfiguration
Update-MgServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup
Commands
Add-MgBetaApplicationKey
Add-MgBetaApplicationPassword
Add-MgBetaServicePrincipalTokenSigningCertificate
Clear-MgBetaApplicationVerifiedPublisher
Confirm-MgBetaUserMemberGroup
Confirm-MgBetaUserMemberObject
Get-MgBetaApplication
Get-MgBetaApplicationByAppId
Get-MgBetaApplicationDelta
Get-MgBetaApplicationExtensionProperty
Get-MgBetaApplicationFederatedIdentityCredential
Get-MgBetaApplicationOwner
Get-MgBetaApplicationTokenIssuancePolicy
Get-MgBetaApplicationTokenLifetimePolicy
Get-MgBetaGroupPasswordSingleSignOnCredential
Get-MgBetaServicePrincipal
Get-MgBetaServicePrincipalAppRoleAssignedTo
Get-MgBetaServicePrincipalAppRoleAssignment
Get-MgBetaServicePrincipalClaimMappingPolicy
Get-MgBetaServicePrincipalCreatedObject
Get-MgBetaServicePrincipalDelta
Get-MgBetaServicePrincipalHomeRealmDiscoveryPolicy
Get-MgBetaServicePrincipalMemberOf
Get-MgBetaServicePrincipalOwnedObject
Get-MgBetaServicePrincipalOwner
Get-MgBetaServicePrincipalPasswordSingleSignOnCredential
Get-MgBetaServicePrincipalRemoteDesktopSecurityConfiguration
Get-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup
Get-MgBetaServicePrincipalTokenLifetimePolicy
Get-MgBetaServicePrincipalTransitiveMemberOf
Get-MgBetaUserMemberGroup
Get-MgBetaUserMemberObject
Get-MgBetaUserPasswordSingleSignOnCredential
Invoke-MgBetaInstantiateApplicationTemplate
New-MgBetaApplication
New-MgBetaApplicationExtensionProperty
New-MgBetaApplicationFederatedIdentityCredential
New-MgBetaApplicationOwnerByRef
New-MgBetaApplicationTokenIssuancePolicyByRef
New-MgBetaApplicationTokenLifetimePolicyByRef
New-MgBetaSchemaExtension
New-MgBetaServicePrincipal
New-MgBetaServicePrincipalClaimMappingPolicyByRef
New-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef
New-MgBetaServicePrincipalOwnerByRef
New-MgBetaServicePrincipalPasswordSingleSignOnCredential
New-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup
New-MgBetaServicePrincipalTokenLifetimePolicyByRef
Remove-MgBetaApplication
Remove-MgBetaApplicationExtensionProperty
Remove-MgBetaApplicationFederatedIdentityCredential
Remove-MgBetaApplicationKey
Remove-MgBetaApplicationOwnerDirectoryObjectByRef
Remove-MgBetaApplicationPassword
Remove-MgBetaApplicationTokenIssuancePolicyTokenIssuancePolicyByRef
Remove-MgBetaApplicationTokenLifetimePolicyTokenLifetimePolicyByRef
Remove-MgBetaDirectoryDeletedItem
Remove-MgBetaDirectoryObject
Remove-MgBetaGroupPasswordSingleSignOnCredential
Remove-MgBetaSchemaExtension
Remove-MgBetaServicePrincipal
Remove-MgBetaServicePrincipalClaimMappingPolicyClaimMappingPolicyByRef
Remove-MgBetaServicePrincipalHomeRealmDiscoveryPolicyHomeRealmDiscoveryPolicyByRef
Remove-MgBetaServicePrincipalPasswordSingleSignOnCredential
Remove-MgBetaServicePrincipalRemoteDesktopSecurityConfiguration
Remove-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup
Remove-MgBetaServicePrincipalTokenLifetimePolicyTokenLifetimePolicyByRef
Remove-MgBetaUserPasswordSingleSignOnCredential
Remove-MgServicePrincipalOwnerDirectoryObjectByRef
Restore-MgBetaDirectoryDeletedItem
Set-MgBetaApplicationVerifiedPublisher
Update-MgBetaApplication
Update-MgBetaApplicationByUniqueName
Update-MgBetaApplicationFederatedIdentityCredential
Update-MgBetaApplicationFederatedIdentityCredentialByName
Update-MgBetaGroup
Update-MgBetaSchemaExtension
Update-MgBetaServicePrincipal
Update-MgBetaServicePrincipalByAppId
Update-MgBetaServicePrincipalPasswordSingleSignOnCredential
Update-MgBetaServicePrincipalRemoteDesktopSecurityConfiguration
Update-MgBetaServicePrincipalRemoteDesktopSecurityConfigurationTargetDeviceGroup

Code Examples

C# / .NET SDK
// Install: dotnet add package Microsoft.Graph
// Install: dotnet add package Azure.Identity
using Microsoft.Graph;
using Azure.Identity;

// Delegated permissions - interactive user sign-in
var scopes = new[] { "Application.ReadWrite.All" };
var options = new InteractiveBrowserCredentialOptions
{
    ClientId = "YOUR_CLIENT_ID",
    TenantId = "YOUR_TENANT_ID",
    RedirectUri = new Uri("http://localhost")
};
var credential = new InteractiveBrowserCredential(options);
var graphClient = new GraphServiceClient(credential, scopes);

// Example: GET /me
var result = await graphClient.Me.GetAsync();
Console.WriteLine($"User: {result?.DisplayName}");

// Application permissions - daemon/service app
var tenantId = "YOUR_TENANT_ID";
var clientId = "YOUR_CLIENT_ID";
var clientSecret = "YOUR_CLIENT_SECRET";

var credential = new ClientSecretCredential(tenantId, clientId, clientSecret);
var graphClient = new GraphServiceClient(credential);

// Example: GET /users/{user-id}
var users = await graphClient.Users.GetAsync();
foreach (var user in users?.Value ?? [])
{
    Console.WriteLine($"User: {user.DisplayName}");
}
JavaScript / TypeScript
// npm install @azure/msal-browser @microsoft/microsoft-graph-client
import { PublicClientApplication } from "@azure/msal-browser";
import { Client } from "@microsoft/microsoft-graph-client";
import { AuthCodeMSALBrowserAuthenticationProvider } from 
    "@microsoft/microsoft-graph-client/authProviders/authCodeMsalBrowser";

const msalConfig = {
    auth: {
        clientId: "YOUR_CLIENT_ID",
        authority: "https://login.microsoftonline.com/YOUR_TENANT_ID"
    }
};

const pca = new PublicClientApplication(msalConfig);
await pca.initialize();

// Delegated: Login with required scope
const loginResponse = await pca.loginPopup({
    scopes: ["Application.ReadWrite.All"]
});

const authProvider = new AuthCodeMSALBrowserAuthenticationProvider(pca, {
    account: loginResponse.account,
    scopes: ["Application.ReadWrite.All"],
    interactionType: "popup"
});

const graphClient = Client.initWithMiddleware({ authProvider });

// Example: GET /me
const result = await graphClient.api("/me").get();
console.log(result);

// Application: Use client credentials (Node.js backend only)
// npm install @azure/identity @microsoft/microsoft-graph-client
import { ClientSecretCredential } from "@azure/identity";
import { TokenCredentialAuthenticationProvider } from 
    "@microsoft/microsoft-graph-client/authProviders/azureTokenCredentials";

const credential = new ClientSecretCredential(
    "YOUR_TENANT_ID",
    "YOUR_CLIENT_ID", 
    "YOUR_CLIENT_SECRET"
);

const authProvider = new TokenCredentialAuthenticationProvider(credential, {
    scopes: ["https://graph.microsoft.com/.default"]
});

const graphClient = Client.initWithMiddleware({ authProvider });
const result = await graphClient.api("/users").get();
console.log(result);
PowerShell
# Install Microsoft Graph PowerShell module
Install-Module Microsoft.Graph -Scope CurrentUser

# Delegated access - interactive sign-in
Connect-MgGraph -Scopes "Application.ReadWrite.All"

# Verify connection
Get-MgContext | Select-Object Account, TenantId, Scopes

# Example: GET /me
$result = Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/me"
$result | ConvertTo-Json -Depth 5

# Application access with certificate
$params = @{
    ClientId = "YOUR_CLIENT_ID"
    TenantId = "YOUR_TENANT_ID"
    CertificateThumbprint = "YOUR_CERT_THUMBPRINT"
}
Connect-MgGraph @params

# Or with client secret (not recommended for production)
# Connect-MgGraph -ClientSecretCredential $credential

# Example: GET /users
$result = Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/users"
$result | ConvertTo-Json -Depth 5

# Always disconnect when done
Disconnect-MgGraph
Python
# pip install msgraph-sdk azure-identity
from azure.identity import InteractiveBrowserCredential, ClientSecretCredential
from msgraph import GraphServiceClient
import asyncio

# Delegated permissions - interactive browser sign-in
credential = InteractiveBrowserCredential(
    client_id="YOUR_CLIENT_ID",
    tenant_id="YOUR_TENANT_ID"
)
scopes = ["Application.ReadWrite.All"]
client = GraphServiceClient(credential, scopes)

async def get_data():
    # Example: GET /me
    result = await client.me.get()
    print(f"User: {result.display_name}")
    return result

asyncio.run(get_data())

# Application permissions - client credentials
credential = ClientSecretCredential(
    tenant_id="YOUR_TENANT_ID",
    client_id="YOUR_CLIENT_ID",
    client_secret="YOUR_CLIENT_SECRET"
)
scopes = ["https://graph.microsoft.com/.default"]
client = GraphServiceClient(credential, scopes)

async def get_users():
    # Example: GET /users
    result = await client.users.get()
    for user in result.value:
        print(f"User: {user.display_name}")
    return result

asyncio.run(get_users())

App Registration

1

Navigate to Azure Portal

Go to App registrations in Microsoft Entra admin center

2

Add API Permission

Select your app → API permissions → Add a permission → Microsoft Graph

3

Select Permission Type

Choose Application permissions or Delegated permissions and search for Application.ReadWrite.All

4

Grant Admin Consent

Application permissions always require admin consent. Click "Grant admin consent" in the Azure portal.