Skip to content

The Space Role Object

An object that represents a space role.

  • id number

    Numeric Unique ID of a space role

  • allowed_paths number[]

    Story IDs to which the user has access (acts as whitelist). If no item is selected, a user can access all content items.

  • resolved_allowed_paths string[]

    Slugs of the stories listed in allowed_paths

  • field_permissions string[]

    Hide specific fields from this role with an array of strings (based on the content schema)

  • readonly_field_permissions string[]

    An array of hidden fields (based on the content schema)

  • permissions enum[]

    An array of strings that define the permissions for the specific role. The following table includes a partial list of supported values. To get all possible values, update the permissions associated with a role, and then retrieve it.

    PermissionDescription
    read_storiesView stories without editing
    save_storiesEdit and save stories
    publish_storiesPublish stories to the live environment
    unpublish_storiesUnpublish stories from the live environment
    publish_foldersPublish folders and their contents
    unpublish_foldersUnpublish folders and their contents
    deploy_storiesDeploy pipeline stories
    delete_storiesPermanently delete stories
    edit_imageEdit images in the Asset Manager
    view_composerView the Visual Editor
    change_alternate_groupChange alternate content groupings (for internationalization or variants)
    move_storyMove stories between folders
    edit_story_slugEdit the URL of a story
    view_contentControls the visibility of content entries. Without this, all content is hidden. To grant read-only access, set Allow reading content permission in the UI.
    view_foldersControls the visibility of folders. Without this, all folders are hidden. To grant read-only access, set Allow reading content permission in the UI.
    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 keys of datasources
    access_commerceAccess e-commerce features
    manage_block_libraryManage components in the Block Library
    hide_asset_foldersHides assets and folders for which the role doesn’t have upload permission. You can specify which folders are accessible in the UI.
  • role string

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

  • subtitle string

    Description of the role

  • datasource_ids number[]

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

  • component_ids number[]

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

  • branch_ids number[]

    An array of pipeline IDs that the role can deploy. If none is selected, all pipelines are accessible.

  • allowed_languages string[]

    List of languages (language codes) that the role can access. If none is selected, all languages are accessible.

  • asset_folder_ids number[]

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