Skip to content

The Collaborator Object

An object that represents a collaborator in a space. You can assign the collaborator to a role, retrieve permissions, update their details, and more.

Learn more about roles and permissions in the Space Roles endpoint.

  • user object

    The user object inside a collaborator object.

    Show child properties
    • id number

      Numeric ID of a user.

    • firstname string

      First name of a collaborator.

    • lastname string

      Last name of a collaborator.

    • alt_email string

      Alternative email of a collaborator.

    • disabled boolean

      Whether the collaborator is active or not.

    • avatar string

      Avatar of a collaborator (usually an image file).

    • userid string

      User ID of a collaborator.

    • friendly_name string

      Friendly name of a collaborator.

    • real_email string

      Email of a collaborator.

  • role string

    Role of a collaborator. Can be admin, editor, or custom roles.

  • user_id number

    Numeric ID of a user.

  • permissions enum[]

    An array of strings that define the role’s permissions.

    PermissionDescription
    read_storiesRead-only access to stories
    save_storiesEdit and save stories
    publish_storiesPublish stories
    unpublish_storiesUnpublish stories
    publish_foldersPublish folders (including stories contained within)
    unpublish_foldersUnpublish folders (including stories contained within)
    deploy_storiesDeploy pipeline stories
    delete_storiesPermanently delete stories
    edit_imageEdit images in the Image Editor
    view_composerUse the Visual Editor
    change_alternate_groupChange alternate content groupings (for internationalization or variants)
    move_storyMove stories between folders
    edit_story_slugEdit a story URL
    view_contentIf checked, hides all stories except those defined in allowed_paths (PermissionsContentFolder/Content item permissions)
    view_foldersIf checked, hides all folders except those defined in allowed_paths (PermissionsContentFolder/Content item permissions)
    view_draft_jsonView the draft JSON payload of stories
    view_published_jsonView the published JSON payload of stories
    manage_tagsCreate, edit, or delete tags
    edit_datasourcesEdit datasources
    edit_datasource_keysEdit datasources keys
    access_commerceAccess e-commerce features (if available)
    manage_block_libraryCreate, move, and edit blocks and folders
    hide_asset_foldersIf checked, hides all assets and folders except those defined in asset_folder_ids (PermissionsAssetsAsset Folder Permissions)
  • allowed_path number[]

    An array of story IDs that the role can access. If none is selected, all stories are accessible.

  • field_permissions string[]

    An array of fields hidden from this role (based on the block schema). If none is selected, all fields are visible.

  • id number

    Numeric ID of a collaborator.

  • space_role_id number

    Numeric ID associated with a single custom role.

  • space_role_ids number[]

    An array of numeric IDs associated with each custom role assigned to a single collaborator.

  • space_id number

    Numeric ID of the collaborator’s space.

Example Object
{
"collaborators": [
{
"user": {
"id": 262115,
"firstname":" Mayve",
"lastname": "Priscy",
"alt_email": null,
"avatar": "avatars/115866/5fgecfcb64/mayve.jpeg",
"userid": "mayve@email.com",
"friendly_name": "Mayve Priscy"
},
"role": "Designer",
"user_id": 262115,
"permissions": ["edit_image"],
"allowed_path": "",
"field_permissions": "",
"id": 236290,
"space_role_id": "49708",
"invitation": null,
"space_role_ids": [],
"space_id": 866112
}
]
}