The Space Role Object
An object that represents a space role. You can manage custom roles, and set permissions to stories, blocks, assets, and more.
Properties
Section titled “Properties”- id number
Numeric ID of a space role.
- allowed_paths number[]
An array of story IDs that the role can access. If none is selected, all stories are accessible.
- blocked_paths number[]
An array of story IDs that the role cannot access. If none is selected, all stories are accessible.
- resolved_allowed_paths string[]
Slugs of the stories listed in
allowed_paths. - resolved_blocked_paths string[]
Slugs of the stories listed in
blocked_paths. - allowed_field_permissions string[]
An array of fields visible to this role (based on the block schema). If none is selected, all fields are visible.
- field_permissions string[]
An array of fields hidden from this role (based on the block schema). If none is selected, all fields are visible.
- readonly_field_permissions string[]
An array of read-only fields for this role (based on the block schema). If none is selected, users associated with this role can update all fields.
- permissions enum[]
An array of strings that define the role’s permissions. The following table includes all supported parameters.
Permission Description 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 allow_space_duplicationCan duplicate the space (learn more in the Duplicate space reference page) 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 force_releaseA story must be part of a release (requires the Releases App) private_releases_full_accessGrant full access to any private release (requires the Releases App) view_contentIf checked, hides all stories except those defined in allowed_paths(Permissions → Content → Folder/Content item permissions)view_foldersIf checked, hides all folders except those defined in allowed_paths(Permissions → Content → Folder/Content item permissions)view_draft_jsonView the draft JSONpayload of storiesview_published_jsonView the published JSONpayload of storiesmanage_tagsCreate, edit, or delete tags edit_datasourcesEdit datasources edit_datasource_keysEdit datasources keys access_commerceAccess e-commerce features (if available) access_tasksAccess tasks (requires the Tasks App) execute_tasksTrigger tasks (requires the Tasks App) create_tasksCreate new tasks (requires the Tasks App) delete_tasksDelete existing tasks (requires the Tasks App) edit_tasksEdit existing tasks (requires the Tasks App) restrict_dimensionsappCannot access the Dimensions App functionalities (requires the Dimensions App) restrict_dimensionsapp_cloneCannot perform a Clone action within the Dimensions App (requires the Dimensions App) restrict_dimensionsapp_overwriteCannot perform an Overwrite action within the Dimensions App (requires the Dimensions App) restrict_dimensionsapp_mergeCannot perform a Merge action within the Dimensions App (requires the Dimensions App) manage_conceptsCreate, edit, or delete concepts (if the Concept Room is enabled) manage_block_libraryCreate, move, and edit blocks and folders apply_to_block_subfoldersApply block-related permissions to sub-items (folders and blocks) deny_uploading_assetsCannot upload assets deny_editing_assetsCannot edit assets deny_deleting_assetsCannot delete assets deny_moving_assetsCannot upload assets deny_creating_asset_foldersCannot create new asset folders deny_updating_asset_foldersCannot change existing asset folders deny_moving_asset_foldersCannot move assets between folders deny_deleting_asset_foldersCannot delete existing asset folders manage-non-translatable-fieldsEdit non-translatable fields only in the default language deny_component_technical_name_updateCannot change a block’s technical name deny_component_fields_name_updateCannot change a field’s technical name hide_asset_foldersIf checked, hides all assets and folders except those defined in asset_folder_ids(Permissions → Assets → Asset Folder Permissions) - role string
The name of the role. Can be admin, editor, or a custom role.
- 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.
- blocked_datasource_ids number[]
An array of datasource IDs that the role cannot access. If none is selected, all datasources are accessible.
- allowed_component_ids number[]
An array of block (component) IDs that the role can add to the Visual Editor. If none is selected, users associated with this role can add all components.
- component_ids number[]
An array of block (component) IDs that the role cannot add to the Visual Editor. If none is selected, users associated with this role can add all components.
- component_group_uuids string[]
An array of block folders (component groups) UUIDs that the role can add to the Visual Editor. If none is selected, users associated with this role can add all component groups.
- blocked_component_group_uuids string[]
An array of block folders (component groups) UUIDs that the role cannot add to the Visual Editor. If none is selected, users associated with this role can add all component groups.
- managed_component_ids number[]
An array of block (component) IDs that the role can edit, duplicate, or delete. If none is selected, users associated with this role can manage all components.
- blocked_manage_component_ids number[]
An array of block (component) IDs that the role cannot edit, duplicate, or delete. If none is selected, users associated with this role can manage all components.
- managed_component_group_uuids string[]
An array of block folders (component groups) UUIDs that the role can edit, duplicate, or delete. If none is selected, users associated with this role can manage all block folders.
- blocked_manage_component_group_uuids string[]
An array of block folders (component groups) UUIDs that the role cannot edit, duplicate, or delete. If none is selected, users associated with this role can manage all block folders.
- branch_ids number[]
An array of pipeline IDs that the role can deploy. If none is selected, all pipelines are accessible.
- blocked_branch_ids number[]
An array of pipeline IDs that the role cannot deploy. If none is selected, all pipelines are accessible.
- allowed_languages string[]
An array of languages (represented by language codes) that the role can access. If none is selected, all languages are accessible.
- blocked_languages string[]
An array of languages (represented by language codes) that the role cannot access. If none is selected, all languages are accessible.
- asset_folder_ids number[]
An array of asset folders IDs that the role can access. If none is selected, all asset folders are accessible.
- blocked_asset_folder_ids number[]
An array of asset folders IDs that the role cannot access. If none is selected, all asset folders are accessible.
Was this page helpful?
This site uses reCAPTCHA and Google's Privacy Policy. Terms of Service apply.
Get in touch with the Storyblok community