GraphServicePrincipal¶
Represents Entra ID service principals collected from Microsoft Graph.
Labels: :GraphObject:GraphServicePrincipal
Properties:
id- Service principal object ID (primary key)createdByAppId- Application ID of the creatoragentAppId- Agent application ID, when present-
agentIdentityBlueprintId- Agent identity blueprint ID, when present -
odataType- Lowercase@odata.type, when returned by Microsoft Graph -
displayName- Service principal's display name accountEnabled- Whether the service principal is enabledalternativeNames- Alternative names for the service principalappId- Associated application IDappOwnerOrganizationId- Owner organization IDpublisherName- Publisher nameservicePrincipalType- Type of service principalloginUrl- Login URL for the service principallogoutUrl- Logout URL for the service principalreplyUrls- Array of reply URLsservicePrincipalNames- Array of service principal names
Relationships¶
Incoming¶
- GraphApplication →
CREATED→ GraphServicePrincipal - Creator identified bycreatedByAppId - GraphApplication →
REPRESENTED_BY→ GraphServicePrincipal - Application represented by the service principal, matched byappId - GraphObject →
ASSIGNED_APPROLE→ GraphServicePrincipal - Principal assigned an app role on this resource - GraphObject →
OWNS→ GraphServicePrincipal - Owner of the service principal
Outgoing¶
- GraphServicePrincipal →
HAS_PUBLISHED_SCOPE→ GraphApplicationScope - Scopes frompublishedPermissionScopes - GraphServicePrincipal →
HAS_APPROLE→ GraphAppRole - Roles defined by the service principal
Examples¶
MATCH (sp:GraphServicePrincipal)-[:HAS_PUBLISHED_SCOPE]->(scope:GraphApplicationScope)
RETURN sp.displayName, scope.value, scope.adminConsentDisplayName, scope.isEnabled