Class AccessProfileResponse.Builder
- Enclosing class:
AccessProfileResponse
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()The app context this profile belongs to.Whether this call created a new access profile.When the profile was created (ISO-8601 UTC).The principal's email, when resolvable.from(AccessProfileResponse other) Opaque identifier for this profile.identityOverrides(Map<String, Object> identityOverrides) identityOverrides(Optional<Map<String, Object>> identityOverrides) Per-context identity overrides, keyed by ownership namespace inscope:<namespace>form (for examplescope:org,scope:client,scope:group).lastModified(String lastModified) lastModified(Optional<String> lastModified) When the profile was last modified (ISO-8601 UTC).principalId(String principalId) principalId(Optional<String> principalId) Principal this profile applies to —usr_<userId>for a user, orkey_<keyId>for a scoped API key acting as its own principal.Reference to a role that supplies this principal's scopes.scopes(List<ScopeClause> scopes) scopes(Optional<List<ScopeClause>> scopes) Inline scope clauses granted to the principal.Profile lifecycle status:activeorsuspended.
-
Method Details
-
from
-
created
Whether this call created a new access profile. True when a new profile was created; false when a profile with the same
principalIdalready existed and was returned unchanged (idempotent create) or updated (when?upsert=true). Present only on the create response (POST /v1/app-contexts/{contextId}/profiles); absent on reads. The HTTP status mirrors it — 201 when created, 200 when an existing profile was returned. -
created
-
id
Opaque identifier for this profile. Also serves as the pagination cursor.
-
id
-
contextId
The app context this profile belongs to.
-
contextId
-
principalId
Principal this profile applies to —
usr_<userId>for a user, orkey_<keyId>for a scoped API key acting as its own principal. -
principalId
-
scopes
Inline scope clauses granted to the principal. Mutually exclusive with
roleId— exactly one of the two is present. -
scopes
-
roleId
Reference to a role that supplies this principal's scopes. Mutually exclusive with
scopes— exactly one of the two is present. -
roleId
-
identityOverrides
public AccessProfileResponse.Builder identityOverrides(Optional<Map<String, Object>> identityOverrides) Per-context identity overrides, keyed by ownership namespace in
scope:<namespace>form (for examplescope:org,scope:client,scope:group). Read back exactly as authored. -
identityOverrides
-
status
Profile lifecycle status:
activeorsuspended. -
status
-
createdAt
When the profile was created (ISO-8601 UTC).
-
createdAt
-
lastModified
When the profile was last modified (ISO-8601 UTC).
-
lastModified
-
email
The principal's email, when resolvable. Set only for a
usr_principal with a matching user record in your tenant; null for akey_principal (a scoped API key has no email), ausr_principal that could not be resolved (for example, the user was deleted), or when your token lacks theusers:rscope in addition to this endpoint's own scope (email is user data, gated the same as GET /v1/users). -
email
-
build
-
additionalProperty
-
additionalProperties
-