IdentityOwnedWrites
Namespace: Meshmakers.Octo.ConstructionKit.Contracts
The identity associations that only the identity service writes (its REST API and the identity CK methods, which enforce
the role-change guard, the audit and the self-service rules): role assignment of users, groups and clients, group
membership and nesting, client impersonation and the role grants of data permissions. The generic write paths refuse
them for every caller: asset-repo GraphQL create, update and query-row update, the mesh-adapter write nodes and the
user-initiated (caller) path of ImportRt. The system import (blueprint seeds and updates, CK migrations), the
identity service's own repository writes and a tenant restore are not affected.
public static class IdentityOwnedWrites
Inheritance Object → IdentityOwnedWrites
Remarks:
Associations only. Listed the identity-owned attributes of System.Identity/User here as
well. Since System.Identity 3.0.0 the model says it itself: those attributes are access: MethodOnly in
ck-user.yaml and the generic access guards (GraphQL, ImportRt rule 139, the adapter) enforce it, so the
attribute list is gone. The association list stays, with a reason: the CK access model has no association-level write
restriction (access exists only on attributes, including the attributes of an association role, and an
association cannot be declared method-only). Remove the list when the CK language can express it.
Matching is by version-less runtime id (model name and element id).
Fields
RefusalReason
The refusal reason the write paths report (GraphQL error extension, logs).
public static string RefusalReason;
Properties
AssociationRoleIds
Association roles whose edges only the identity service writes, in both directions (refused on whichever end the
write names): role assignment of users, groups and clients, group membership and nesting, client impersonation
and the role grants of data permissions. PolicyPermission and IdentifiesUser are not listed (open).
public static IReadOnlyList<RtCkId<CkAssociationRoleId>> AssociationRoleIds { get; }
Property Value
IReadOnlyList<RtCkId<CkAssociationRoleId>>
Methods
IsIdentityOwnedAssociation(RtCkId<CkAssociationRoleId>)
true when edges of this association role must not be written by a generic path.
public static bool IsIdentityOwnedAssociation(RtCkId<CkAssociationRoleId> associationRoleId)
Parameters
associationRoleId RtCkId<CkAssociationRoleId>