UserIdentity Class

Identity attributes of a lab user.

Constructor

UserIdentity(*, principal_name: str | None = None, principal_id: str | None = None, tenant_id: str | None = None, object_id: str | None = None, app_id: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
principal_name
str

Set to the principal name / UPN of the client JWT making the request.

Default value: None
principal_id
str

Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id.

Default value: None
tenant_id
str

Set to the tenant ID of the client JWT making the request.

Default value: None
object_id
str

Set to the object Id of the client JWT making the request. Not all users have object Id. For CSP (reseller) scenarios for example, object Id is not available.

Default value: None
app_id
str

Set to the app Id of the client JWT making the request.

Default value: None

Variables

Name Description
principal_name
str

Set to the principal name / UPN of the client JWT making the request.

principal_id
str

Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id.

tenant_id
str

Set to the tenant ID of the client JWT making the request.

object_id
str

Set to the object Id of the client JWT making the request. Not all users have object Id. For CSP (reseller) scenarios for example, object Id is not available.

app_id
str

Set to the app Id of the client JWT making the request.