v1

latestSwagger 2.02026-07-135658136.3 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.

objectIdstring

The object ID.

objectTypestring required

The object type.

deletionTimestampstring date-time nullable

The time at which the directory object was deleted.