Skip to main content
Identity & Access/ZIAM

ZiamAddProjectMember

Adds a user or group to a project by creating a ProjectMembership resource. subjectType must be User or Group. The operation is idempotent; repeated calls return changed=false. Optional body.roleKeys updates Project-scoped roles such as project-owner. project-admin is global and must be granted through a User or Group RoleBinding; ProjectMembership.roleKeys does not grant project-admin.

PUT/api/v1/ziam/projects/{projectUuid}/members/{subjectType}/{subjectUuid}

Operation ID

ZiamAddProjectMember

Since

1.0.0

Execution Mode

Synchronous

Auth Context

Auth Required

Auth Context

Send these values as request headers when calling this API.

AuthorizationstringRequired

Bearer Token

X-Tenant-IDstring

X-Tenant-ID

Request Inputs

application/json

Path Parameters

  • projectUuid
    StringRequired

    Project uuid. Both compact 32-character uuid and dashed uuid are accepted.

    Example: 44444444444444444444444444444444

  • subjectType
    StringRequired

    Project member subject type. Use User for a direct user member or Group for a user group member.

    Example: User

    User | Group

  • subjectUuid
    StringRequired

    Project member subject uuid. Both compact 32-character uuid and dashed uuid are accepted.

    Example: 11111111111111111111111111111111

Body Fields

Optional body for member relationship PUT APIs. roleKeys describes roles attached to this direct relationship. ProjectMembership can carry Project-scoped project-owner; project-admin must use a User or Group RoleBinding and is not authorized from ProjectMembership.roleKeys. Organization and group membership reject both roles. Empty or omitted body only creates the membership. Global ZIAM management roles must be assigned through RoleBinding APIs.

  • roleKeys
    List

    Scoped role keys attached to this direct relationship. project-owner is valid only for ProjectMembership. project-admin must use a User or Group RoleBinding and is not authorized from relationship roleKeys. Send an empty array to clear relationship roles. ziam-super-admin, ziam-platform-admin, ziam-platform-viewer, and ziam-auditor are not allowed.

    Example: project-owner

Responses

200 OK

Relationship updated.

Content-Type: application/json

Response body root type: object

  • status
    String

    Status for this resource

    Example: ok

  • data
    Object

    Response payload data

    • resourceType
      String

      Resource type for this resource

      Example: Project

    • resourceUuid
      String

      Resource uuid for this resource

      Example: 44444444444444444444444444444444

    • subjectType
      String

      Subject type for this resource

      Example: User

    • subjectUuid
      String

      Subject uuid for this resource

      Example: 11111111111111111111111111111111

    • roleKey
      String

      Role key for this resource

      Example: ziam-platform-admin

    • relationshipUuid
      String

      Relationship uuid for this resource

      Example: 77777777777777777777777777777777

    • changed
      Boolean

      true when this request created or updated a relationship; false when the relationship already existed.

      Example: true

    • joinedAt
      String

      Relationship creation time. Returned when a member, project membership, or role binding exists or is created.

      Example: 2026-06-16T10:00:00Z

      {"format":"date-time"}

    • roleKeys
      List

      Role keys attached to this direct membership. project-owner is Project-scoped. project-admin is not authorized from membership roleKeys and must be assigned through a User or Group RoleBinding. Organization and group member metadata reject both roles. Global management roles ziam-super-admin, ziam-platform-admin, ziam-platform-viewer, and ziam-auditor are rejected here and must be assigned through a RoleBinding roleKey.

      Example: project-owner

  • Change Time

    AddedRequest body fields roleKeysAddedResponse fields roleKeysDeletedResponse fields scopeType, scopeUuid
    View API