v1

latestOpenAPI 3.0.02026-07-145658104.5 KB
ServicePrincipal

Creates a service principal in the directory.

post/{tenantID}/servicePrincipals

Path parameters

tenantIDstring required

The tenant ID.

Query parameters

api-versionstring required

Client API version.

Request body

accountEnabledboolean

whether or not the service principal account is enabled

appRoleAssignmentRequiredboolean

Specifies whether an AppRoleAssignment to a user or group is required before Azure AD will issue a user or access token to the application.

servicePrincipalTypestring

the type of the service principal

tagsstring[]

Optional list of tags that you can apply to your service principals. Not nullable.

Response

The service principal was created successfully.

deletionTimestampstring date-time nullable

The time at which the directory object was deleted.

objectIdstring

The object ID.

objectTypestring required

The object type.