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)
Parameters
Name | Description |
---|---|
principal_name
Required
|
Set to the principal name / UPN of the client JWT making the request. |
principal_id
Required
|
Set to the principal Id of the client JWT making the request. Service principal will not have the principal Id. |
tenant_id
Required
|
Set to the tenant ID of the client JWT making the request. |
object_id
Required
|
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
Required
|
Set to the app Id of the client JWT making the request. |
Keyword-Only Parameters
Name | Description |
---|---|
principal_name
|
Default value: None
|
principal_id
|
Default value: None
|
tenant_id
|
Default value: None
|
object_id
|
Default value: None
|
app_id
|
Default value: None
|