Role and permission rules

This page covers everything about roles (SpaceRole): what goes into a role, the rules for how those settings are evaluated, limits, permissions, and the tasks you do in Content Studio. If you're new to roles, start with Roles and permissions, which explains what a role is and how you go from creating one to handing work to a colleague.

The examples on this page use the same online clothing store Space as that page. The role "Product Editor", given to the colleague minji.kim@example.com, allows Read, Create, and Edit on "Product" Content and doesn't allow Delete or Publish. To fill in product details, the colleague also needs to read the "Product" template, so the role also allows Read on the "Product" Content Type on the Content Type tab (Content authoring rules). The role screen has one group for each action, and the Allow conditions and Exclusion conditions inside a group decide what that action applies to. On this page, one row under Allow conditions is called an "allow condition", and one row under Exclusion conditions is called an "exclude condition".

Settings

You create and edit roles on the Roles & Permissions screen. The "Create Role" screen, where you create a role, is split into Basic information (name and description) at the top and the Permissions area below it. The Permissions area has five tabs: Content Type, Content, Media, Script, and Settings. Set things up across the tabs, then click the Create button at the top right to save every tab at once. When you open an existing role, its name appears as the screen title, and Delete, List, Assign, and Save are at the top right. Expand Assign to find Assign to members, Assign to Delivery Access Tokens, and Assign to Space Access Tokens, which assign the role to members or tokens.

The Create Role screen. Basic information has the Name field (Product Editor) and the Description field, and the Permissions area below it has the Content Type, Content, Media, Script, and Settings tabs. The List and Create buttons are at the top right

What each tab sets

TabWhat it sets
Basic informationThe role's name and description
Content TypeFor templates such as products and notices (Content Types), the scope allowed for each action
ContentFor the Content created from those templates, the scope allowed for each action
MediaFor uploaded photos and files (Media), the scope allowed for each action
ScriptThe scope allowed for each action that runs or manages a Script
SettingsWhether members can work with Space settings. You turn each item on or off with a checkbox

Name and description

SettingDescriptionDefaultConstraints
NameThe name you know this role by. It appears in the role list, and you select the role by this name when you give it to a member or bind it to a tokenNone. Required1 to 64 characters. It can be the same as another role's name. You can change it after creating the role
DescriptionA note on who the role is for. It appears in the Description column of the role listEmptyUp to 128 characters. You can leave it empty and change it after creating the role

The group and conditions for each action

The four tabs Content Type, Content, Media, and Script look the same. Inside a group, one line under Allow conditions and one under Exclusion conditions explains what that section means.

  • Each action gets one group. The selector at the top of a group shows that group's action, and a tab can't have two groups for the same action.
  • Inside a group are two sections: Allow conditions and Exclusion conditions. Allow conditions set the scope where the action is allowed, and exclusion conditions set what to take out of that scope.
  • To add a group, click the Add group button at the bottom of the tab and select an action. The list shows only actions that don't have a group on that tab yet.
  • A new group starts with one allow condition whose fields are all set to "Any…", and no exclusion conditions.
  • Click Add allow condition or Add exclusion condition to add a condition, and click the trash can icon to the right of a condition to delete it. A group needs at least one allow condition, so you can't delete the last one.
  • To delete a whole group, click the Delete group button at the top right of the group.

The Content tab in the Permissions area of Product Editor. There are three groups, Read, Create, and Edit, and each group has allow conditions (Content Type Product, creator, Tag), an exclusion conditions section, and Delete group. In the Create group, the creator and Tag fields are grayed out and locked, and the Add group button is at the bottom

Each condition is made up of a few fields that narrow the scope. The screen shows the selected values instead of field names, and each tab has different fields.

FieldDescriptionDefaultTabs
Content TypeOn the Content tab, it narrows to Content created from that template. On the Content Type tab, it narrows to that Content Type itselfAny Content TypesContent Type, Content
CreatorDecides whose creations this condition applies toAny UsersAll four tabs
TagDecides which Tag an item needs to have for this condition to applyAny TagsContent, Media
ScriptDecides which Script this condition applies toAny ScriptsScript

If you leave a field at its default, that field doesn't narrow the scope. How each field narrows the scope is covered in Narrowing by Content Type, Narrowing by creator, Narrowing by Tag, and Narrowing to one specific Script.

The Content Type tab. The Read group's allow condition has the Content Type field (Product) and the creator field (Any Users)

The Media tab. It has no groups, so the notice "Deny all: This Role has no permissions here. Add a group to grant permissions." appears, with the Add group button below it

The action list that opens when you click Add group on the Media tab. It has All actions, Read, Create, Edit, Delete, Publish, Unpublish, Archive, and Unarchive

What a new role starts with

When you first open the "Create Role" screen, each tab starts out as follows.

TabStarting state
Content Type, Content, MediaEach has one All actions group, and its allow condition has every field set to "Any…". If you save as is, every action is allowed on everything that tab covers
ScriptThere are no groups, so Deny all is shown
SettingsEvery item is off

To make a narrow role, change the action of the All actions group on those three tabs to the action you need, or delete the group with Delete group.

Actions you can choose on each tab

Actions appear on the screen with their English names. No action includes another, so add one group for each action you need. Only All actions covers every action on that tab at once.

ActionDescriptionContent TypeContentMediaScript
ReadView lists and contents. Items you can't read don't appear in listsYesYesYesYes
CreateCreate something newYesYesYesYes
EditChange something that exists and save itYesYesYesYes
DeleteDelete itYesYesYesYes
PublishPublish it so it's delivered publiclyYesYesYesNo
UnpublishCancel publishingYesYesYesNo
ArchiveArchive itNoYesYesNo
UnarchiveTake it out of the archiveNoYesYesNo
ExecuteRun a ScriptNoNoNoYes
All actionsCovers every action on that tab at onceYesYesYesYes

Settings permissions on the Settings tab

On the Settings tab, you turn on or off, item by item, whether members can work with Space settings. Unlike the other tabs, it has no groups or conditions. Each item has a checkbox. When it's selected, members with this role can work with that setting, and when it's cleared, they can't. In a new role, every item is off.

The Settings tab. Below the Select all checkbox at the top are checkboxes for Manage Space info, Manage memberships, Manage Roles, Manage Delivery Access Tokens, Manage Space Access Tokens, Manage Locales, Manage Email Accounts, Manage apps, Manage Tags, Manage Web Hostings, Manage ServiceLogin, Manage Webhooks, Manage Schedulers, and View monitoring, and none of them are selected

ItemWhat it lets members doGood to know
Select allTurns all fourteen items below on or off at onceWhen all fourteen items are on, it shows as selected. When only some are on, it shows a partly selected mark (−). Clicking it while it's partly selected turns all fourteen items on
Manage Space infoChange the Space's name, description, and iconDeleting a Space isn't controlled by this item but by Organization roles (Deletion rules)
Manage membershipsAdd members to this Space, remove them, and change their rolesYou can view the member list without this item. The conditions on which roles you can give are in Who can add members to a Space, and which roles they can give. It also lets you change roles that are bound to tokens, so give it with care (The bound role decides what a token can do)
Manage RolesCreate, edit, and delete rolesYou can view the role list and what each role contains without this item. Members can also edit the roles they hold themselves, so be careful (Editing a role applies to everyone who has it)
Manage Delivery Access TokensIssue, view, edit, and delete read-only tokensFor the rules on tokens, see Token rules
Manage Space Access TokensIssue, view, edit, and delete tokens that read and writeThe two tokens have separate items, so you can hand off issuing read-only tokens on its own
Manage LocalesAdd, edit, and delete Locales, and change the default LocaleYou can view the Locale list without this item
Manage Email AccountsRegister, view, and delete the sender accounts Scripts use to send email, and edit their names and sender detailsEven viewing them requires this item
Manage appsGet apps from the market and install them in this Space, and view and delete installation recordsIt's also needed to make a Market App from this Space's contents (Organization settings and rules)
Manage TagsCreate, edit, and delete TagsAdding Tags to Content or Media and removing them isn't done with this item but with Edit on that item. You can view the Tag list without this item
Manage Web HostingsDeploy and delete sites, and connect your own domainEven viewing them requires this item
Manage ServiceLoginWork with member login settings, signed-up members, and member roles (ServiceUserRole)It's also needed to save a Script that reads or edits signed-up members' information (Script run permission and delegation)
Manage WebhooksCreate, view, edit, and delete Webhooks, and view their call historyEven viewing them requires this item
Manage SchedulersCreate, view, edit, and delete Schedulers, and view their run historyTo create or edit one, you also need Execute on the Script it runs (Scheduler settings and rules)
View monitoringView this Space's usage

Where the menu for each item is located is covered in Where the other settings in a Space are. For members whose roles have an item turned off, that item's menu appears grayed out, or the screen opens but its buttons for making changes can't be clicked.

Rules

How access is decided

Say your colleague tries to delete the product "Stainless Tumbler 500ml". Whether they can delete it is decided in this order.

  1. Each role the colleague has in this Space is checked one at a time.
  2. For each role, WEEGLOO checks whether the All actions group on the Content tab allows that product.
  3. If the All actions group doesn't allow it, WEEGLOO checks whether the Delete group on the same tab allows that product.
  4. If the All actions group or the Delete group allows it in any one role, the colleague can delete it. If no role allows it, the delete is blocked.

Whether one group allows that product is decided by the rules in Within a group, exclude conditions win over allow conditions and A group with only exclude conditions allows everything outside them. Even with permission, the product's status can block the delete. The conditions that depend on status are in Deletion rules.

An action you don't allow can't be done

If there's no group for an action and no All actions group, that role can't do the action. The Content tab of "Product Editor" has no Delete group, so the colleague can't delete products. For an action you don't want to hand over, you don't need to block it with exclude conditions. Leave out that action's group.

You can save a tab with no groups at all. Then the role can't do any action on what that tab covers. If you delete the All actions group on the Media tab of "Product Editor" and save, a colleague who has only this role can't view or upload photos. A tab with no groups shows Deny all and the notice "This Role has no permissions here. Add a group to grant permissions." Even after you save and open the role again, that tab still shows Deny all.

The Media tab. It has no groups, so the Deny all notice appears

Every field in a condition must match, but only one condition has to match

  • If you set several fields in one condition, the condition matches only items that match all of those fields. If an allow condition in the Edit group has "Product" in the Content Type field and "Bestsellers" in the Tag field, it matches only products tagged "Bestsellers". It doesn't match products without a Tag, or other kinds of Content tagged "Bestsellers".
  • If a group has several allow conditions, matching any one of them is enough to allow the action. To let someone edit both products and notices, put two allow conditions in the Edit group: one with "Product" in the Content Type field and one with "Notice".
  • Each field takes only one value. To narrow by several values, add several conditions.
  • An allow condition with every field set to "Any…" matches every item. So if the same group also has a narrowed allow condition, the narrowed one has no effect. Content Studio shows the notice "The row with no conditions already covers everything, so this row has no effect." under the narrowed condition, and won't save the role until you delete that condition. To narrow the scope, change the fields of the existing condition instead of adding a new one.

Within a group, exclude conditions win over allow conditions

When a group has both allow and exclude conditions, the action is allowed only on items that match one of the allow conditions and none of the exclude conditions. To let someone delete products, but not products tagged "Bestsellers", put these two conditions in the Delete group on the Content tab.

SectionContent TypeCreatorTag
Allow conditionsProductAny UsersAny Tags
Exclusion conditionsProductAny UsersBestsellers

If you set every field of an exclude condition to "Any…", the group doesn't allow the action on any item. Content Studio shows the notice "The exclusion conditions cover all allow conditions, so this group allows nothing." on that group.

Exclude conditions win only within the same group of the same role. The All actions group and other roles are evaluated separately (The All actions group is evaluated separately from other groups, With several roles, any one role can allow an action).

A group with only exclude conditions allows everything outside them

When you add a group, its allow conditions come with one condition whose fields are all "Any…". If you leave that allow condition as it is and set only exclude conditions, the action is allowed on every item that doesn't match the exclude conditions. Adding an exclude condition doesn't block the action. It allows the action on everything outside the excluded scope.

For example, say you add a Delete group to "Product Editor", leave its allow condition as it is, and add only one exclude condition with "Product" in the Content Type field. Then the colleague can't delete products, but can delete every Content that isn't a product, such as notices.

To block an action, delete that action's group instead of adding exclude conditions. Use exclude conditions only to take part of the scope out of what your allow conditions have narrowed.

A role saved from a program with only an excluded scope and no allowed scope is evaluated by the same rule. When you open such a role in Content Studio, that action's group appears with an allow condition whose fields are all "Any…".

The All actions group is evaluated separately from other groups

Whether someone can do an action is decided by evaluating that action's group and the All actions group separately, and if either one allows it, they can do it. Exclude conditions take effect only within the group they belong to. This leads to the following.

  • In a role with an All actions group, adding an exclude condition to the Delete group doesn't stop the deletion of items that the All actions group allows. Content Studio shows the notice "Items that match this exclusion are still allowed if they match the All actions group. An exclusion applies only within its own group." under that exclude condition.
  • Exclude conditions in the All actions group can't block what another group allows. Even if the All actions group has an exclude condition with "Product" in the Content Type field, products can still be read if there's a Read group whose allow condition is set to "Product". In this case too, a notice appears under that exclude condition.
  • If you leave the All actions group's allow condition at "Any…" and set only exclude conditions, every action is allowed on every item that doesn't match those exclude conditions (A group with only exclude conditions allows everything outside them).

To allow most things and block only some, don't use the All actions group. Add a group for each action you need, then use that group's exclude conditions to take out the scope you want to block.

With several roles, any one role can allow an action

If a member has several roles, they can do any action that at least one of those roles allows. If the colleague has "Product Editor" and also "Photo Editor", which allows Read, Create, and Edit on Media, they can edit both products and photos.

  • Exclude conditions in one role can't block what another role allows. Even for an item excluded in "Photo Editor", the colleague can do the action if "Product Editor" allows it.
  • The same goes for items on the Settings tab: it's enough for an item to be on in any one of the member's roles.
  • So giving someone one more role either expands what they can do or leaves it the same. It never takes anything away.

How many roles you can give one member, and how to give them, are covered in Giving one member several roles.

Narrowing by Content Type

  • On the Content tab, the Content Type field narrows to Content created from that template. A condition set to "Product" matches only products, not notices.
  • On the Content Type tab, the Content Type field narrows to that Content Type itself. In the Edit group, a condition set to "Product" matches only editing the "Product" template. It has nothing to do with editing product Content.
  • The field lists Any Content Types and the Content Types in this Space.
  • If you narrow the Read group, items outside the scope don't appear in lists.
  • Media has no template, so the Media tab doesn't have this field.

Narrowing by creator

In the creator field, select one of the following.

OptionItems this condition matches
Any UsersEvery item, no matter who created it
The requesting userItems each person with this role created themselves
A specific userItems that person created. Find and select them in this Space's Members list or Space Access Tokens list. It stays fixed to that person, no matter who has this role
  • The creator is the person who first created the item. The creator doesn't change, even if someone else edits the item later.
  • The requesting user is evaluated differently for each person who has the role. Two colleagues with the same "Product Editor" role each work only with the products they created.
  • Who counts as The requesting user in a role bound to a token is covered in The bound role decides what a token can do.
  • Reads through public delivery are evaluated differently (Conditions that work differently in public delivery).

Narrowing by Tag

  • This field exists only on the Content and Media tabs, because Content Types and Scripts don't take Tags.
  • It matches items that have that Tag, even if they have other Tags too.
  • A scope you blocked with a Tag opens up again if someone who can edit the item removes the Tag, because adding and removing Tags is done with Edit on that item. If you used an exclude condition in the Delete group to stop "Bestsellers" products from being deleted, put the same exclude condition in the Edit group too, so the Tag can't be removed.
  • The Tag field doesn't apply to reads through public delivery (Conditions that work differently in public delivery).

Narrowing to one specific Script

  • The Script field on the Script tab lists Any Scripts and the Scripts in this Space. If you select one Script, the condition matches only that Script. If you leave it at Any Scripts, it matches every Script in this Space.
  • To let a colleague or a site run only one Script, set the Script field in the Execute group's allow condition to that Script. The steps are in Allow running only one specific Script.

What you can narrow in a Create group

Create is the action of making an item that doesn't exist yet, so the creator of the new item is taken to be the person making it (the requesting user). A new item has no Tags yet, so a condition narrowed by Tag doesn't match Create. Content Studio locks the following fields in Create groups.

  • A Create group on the Content tab narrows only by the Content Type field. The creator field and the Tag field are locked to Any Users and Any Tags. If there's a Create group whose allow condition has "Product" in the Content Type field, the colleague can create only products.
  • In Create groups on the Content Type and Media tabs, every field is locked, so you can't narrow the scope.
  • In a Create group on the Script tab, the Script field is locked, and you can set only the creator field.
  • If you narrow the All actions group's allow condition by Tag, or by the field that selects the target item on the Content Type and Media tabs, that condition doesn't match Create. If the All actions group's allow condition is narrowed this way or by the creator field, and the tab has no other group that can create items, Content Studio shows a notice inside the All actions group saying that the tab's items can't be created, such as "This Role can't create Content. This group's conditions apply only to items that already exist.", along with an Add Create group button. To let people create new items, add a separate Create group.

Conditions that work differently in public delivery

When content is read through public delivery, for example when a site reads published content with a Delivery Access Token (a read-only key), two scope conditions are evaluated differently than in Content Studio.

  • The Tag field is left out of the evaluation. If an allow condition in the Read group has "Product" in the Content Type field and "Bestsellers" in the Tag field, every published product can be read through public delivery, whatever its Tags. An exclude condition narrowed by Tag also applies without regard to Tags.
  • The creator field is evaluated with the creator information in the published version. A published version of Content includes creator information only if Include author info on publish is on for its Content Type, and a published version of Media never includes it. A published version without creator information matches neither allow conditions nor exclude conditions that are narrowed by creator (Author info is included when you publish).

So in a role you'll bind to a Delivery Access Token, narrow the read scope by Content Type.

Settings permissions work only for people

Items you turn on in the Settings tab take effect when a member with this role works with their own account. That means working while logged in to Content Studio, working with that member's Personal Access Token (a key that acts on behalf of their account), and working through an AI tool you've connected after signing in with that member's account. Even if you bind the same role to a Space Access Token or a Delivery Access Token, those tokens can't do the work these items cover. Everything tokens can't do is gathered in What tokens can't do.

The same goes for Create, Read, Edit, and Delete on the Script tab. These four actions manage Scripts, so in a role bound to a Space Access Token, only Execute takes effect.

Script run permission and delegation

To run a Script, the caller's role needs Execute on that Script. When a member calls it, the member's roles are checked. When it's called with a Space Access Token, the role bound to that token is checked. When a signed-up member (ServiceUser) calls it, their member role (ServiceUserRole) is checked. When a Script whose Who can run it from the call URL is set to Anyone (even without a token) is called at its anonymous call address, this check is skipped, so anyone can run that Script (Anonymous call opens a Script to anyone, with no token).

When a Script runs, the actions written inside it aren't checked again against the caller's role. Instead, they're checked in advance against the role of the person who saves the Script. The check happens both when the Script is created and when it's edited and saved, and the Script isn't saved unless it meets the conditions below. If saving is blocked when you create a Script, the "Failed to create Script." notification appears, and its body shows the missing permission (for example, Edit on Content).

  • For each action in the Script that works with Content Types, Content, or Media, the saver's role must have the same action on that target. A Script that edits products needs Edit on the Content tab. It's enough for one of the saver's roles to have it, and All actions stands in for every action.
  • The group for that action must not narrow the scope. Every field of its allow condition must be "Any…", and an allow condition narrowed by Content Type, creator, or Tag doesn't count. A group that also has an exclude condition doesn't count either.
  • The one exception is creating Content: a Create group narrowed by Content Type is enough. In that case, the Script can create Content only of the Content Types the saver can create.
  • If the Script has actions that read or edit signed-up members' information, the saver's role must have Manage ServiceLogin turned on.
  • Scripts that don't work with any of these, such as one that only calls an external service, aren't checked.

Put the two checks together, and running a Script is like doing the work inside it with authority delegated by the person who saved it. Keep the following in mind.

  • A colleague or token with only Execute can still do the work inside the Script. Even though "Product Editor" can't delete products, if it can run a Script that deletes products, products get deleted through that Script.
  • After the check at save time, the Script isn't checked again. Even if the saver's role is narrowed later, or the saver leaves the Space, the saved Script keeps running as it was saved. When someone edits and saves it again, it's checked again against that person's role.
  • So have someone in charge of the whole Space save Scripts, and give callers Execute only on the Scripts they need (Narrowing to one specific Script).
  • When a Webhook runs a Script, nobody's Execute is checked. Anyone with Manage Webhooks can make this Space's Scripts run in response to the changes they choose (When it runs a Script instead of a URL).
  • Each time a Scheduler runs, it checks whether its creator's role has Execute on that Script. If Execute is gone, the Scheduler turns off (It turns off if its creator loses the run permission).

For how to call a Script and what it returns, see Script.

The Administrator role

When a Space is created, the Administrator role and a read-only role, "Read Only", are created with it, and the person who created the Space gets the Administrator role (What comes with a new Space). The Administrator role has a System label next to its name in the list, while "Read Only" can be edited or deleted like any other role.

  • It's a role with an All actions group that has no scope conditions on all four tabs, Content Type, Content, Media, and Script, and with Select all turned on in the Settings tab. It can do everything inside that Space.
  • It can't be edited or deleted. Its name and description can't be changed either. To give a colleague narrower permissions, create a new role.
  • If you click Administrator in the list to open it, you can see what it contains. But every field is shown as read-only, and you can't click Save or Delete. You can still assign it to members or tokens with Assign.
  • Members with this role can give members roles they don't hold themselves (Member and invitation rules), and bind such roles to tokens (Roles you can bind).
  • An Owner of the Organization can join, with this role, even a Space they weren't assigned to (An Owner can join any Space on their own).

The Administrator screen. The System badge is next to the title, the name, description, and Permissions area are grayed out as read-only, and the Delete and Save buttons can't be clicked

Editing a role applies to everyone who has it

A role is a set of permissions shared by members and tokens. When you edit a role and save it, every member who has it and every token it's bound to are evaluated with the changed permissions. What happens on the token side is covered in The bound role decides what a token can do. A screen a member already has open doesn't update on its own. The changed permissions take effect when they move to another screen or refresh, and anything they try with the old permissions before then is refused.

  • If you narrow Execute on the Script tab, Schedulers created by people with that role can turn off (Script run permission and delegation).
  • A member whose role has Manage Roles turned on can edit every role except Administrator. That includes the roles they hold themselves, so they can widen their own permissions by adding to their own role. Turn on Manage Roles only for people you'd trust with the whole Space.
  • If two people edit the same role at the same time, the later save is refused. This keeps the first person's changes from being overwritten without anyone noticing. In Content Studio, the Version Conflict window appears. Click Discard My Changes & Reload to load what was saved first, or click Overwrite With My Changes to overwrite what was saved first with your changes.

What roles don't decide

Limits

ItemLimit
Role Name1 to 64 characters
Role DescriptionUp to 128 characters
Allow conditions in one group30
Exclude conditions in one group30
Roles you can create in one OrganizationVaries by plan

In Content Studio, once a section has 30 allow or exclude conditions, the Add allow condition or Add exclusion condition button stops working and the notice "You can add up to 30 conditions here." appears. If the name or description is longer than the limit, or there are more conditions than the limit, the role isn't saved.

The number of roles is counted across all the Spaces in that Organization together. The values are in the Role & Permission row of Pricing. Once you reach the limit, you can't create new roles, and you can create them again after you delete roles you don't use (When you exceed a count limit). How the role created along with a Space counts toward this number is covered in Space settings and rules.

For how many roles you can give one member, see Giving one member several roles.

Required permissions

What you want to doRequired permission
View the role list and what each role containsBeing a member of that Space is enough. In Content Studio, though, without Manage Roles the Roles & Permissions screen opens, but the Create button and the row actions can't be clicked
Create, edit, and delete rolesManage Roles in your role in that Space
Give members roles or change themManage memberships. For the conditions on which roles you can give, see Who can add members to a Space, and which roles they can give
Bind roles to tokensThe permission to issue tokens and the conditions on which roles you can bind are in Roles you can bind
Edit or delete the Administrator roleNo one can
  • You create, edit, and delete roles with your own account, either by logging in to Content Studio or with a Personal Access Token or a connected AI tool. You can't do it with a Space Access Token (Settings permissions work only for people).
  • The Administrator role includes Manage Roles.

Tasks in Content Studio

The first task, Create a role, is the basic way to create a role for a colleague. The tasks after it cover editing the roles you've made, narrowing their scope, and deleting them. The steps for giving a role to a member are in Add a colleague to a Space.

With Ask AI on the screens for creating and editing a role, you can build a question that includes what's on the screen and ask an AI agent (Ask AI from Content Studio).

Create a role

These steps create the role "Product Editor" for Minji Kim (minji.kim@example.com), a colleague in the clothing store's "Online Store" Space. The role allows only Read, Create, and Edit on "Product" Content and Read on the "Product" Content Type. It doesn't allow deleting or publishing.

The Administrator role, created along with the Space, allows everything in that Space, and it can't be edited or deleted (The Administrator role). So you create the narrower permissions for Minji as a new role. Use an account with the Manage Roles permission, such as an Administrator of "Online Store" (Required permissions).

  1. In the left menu, click Roles & Permissions.
  2. Click the Create button at the top right of the list.
  3. In Basic information, enter Product Editor in the Name field. You can leave the Description field empty.

You can see what Basic information looks like in Settings.

In a new role, the Content Type, Content, and Media tabs each start with one All actions group that allows every action. Change or delete these groups so that only the actions Minji needs remain (What a new role starts with). Then work through Set up the Content tab, Set up the Content Type tab, and Clear the Media tab and save in order.

Set up the Content tab

On the Content tab, add Read, Create, and Edit groups for "Product".

  1. Click the Content tab.
  2. In the action field at the top of the All actions group, select Read.
  3. Under Allow conditions in that group, select "Product" in the Content Type field (it shows Any Content Types). Leave the creator field and the Tag field as they are.
  4. Click the Add group button at the bottom of the tab.
  5. In the list of actions that appears, select Create.
  6. In the new Create group, select "Product" in the Content Type field. The creator field and the Tag field of a Create group are locked.
  7. Click the Add group button at the bottom of the tab again.
  8. In the list of actions that appears, select Edit.
  9. In the new Edit group, select "Product" in the Content Type field.

You can see what the Content tab looks like once it's set up this way in The group and conditions for each action. Why the fields of a Create group are locked is explained in What you can narrow in a Create group.

Set up the Content Type tab

Groups on the Content tab don't give permission to read templates (Content Types) (Content authoring rules). So that Minji can read the "Product" template and fill in products, change the group on the Content Type tab to Read. Without Read on the Content Type, "Product" doesn't appear in the Create list on the Content list.

  1. Click the Content Type tab.
  2. In the action field at the top of the All actions group, select Read.
  3. Under Allow conditions in that group, select "Product" in the Content Type field.

You can see what the Content Type tab looks like once it's set up this way in The group and conditions for each action.

Clear the Media tab and save

Minji doesn't work with photos, so delete the group on the Media tab. The Script tab starts out empty, and every item on the Settings tab is off, so leave them as they are.

  1. Click the Media tab.
  2. Click the Delete group button at the top right of the All actions group. Once the group is gone, Deny all appears.
  3. Click the Create button at the top right.

When you click Create, the screen switches to the role you created, and "Product Editor" appears as the screen title. When the title changes like this, the role has been created. Product Editor also appears in the list under Roles & Permissions in the left menu.

The Roles & Permissions list. Below "Define Roles that set what members and tokens can do in this Space.", Administrator (System), Product Editor, and Product Read-Only are listed with the Role, Description, Members, Delivery Access Tokens, Space Access Tokens, Updated at, and Updated by columns

Creating a role doesn't give anyone permissions yet. The steps for giving it to a member are in Add a colleague to a Space, and the steps for binding it to a token are in Issue a Delivery Access Token.

Edit a role

These steps open the "Product Editor" role again and edit it. The other tasks below also start by opening the role this way.

  1. In the left menu, click Roles & Permissions.
  2. Click the "Product Editor" row in the list. The role's screen opens, with "Product Editor" as the screen title.
  3. Click the tab you want to edit.
  4. Edit the groups and conditions. To add a group, click the Add group button, and to add a condition, click Add allow condition or Add exclusion condition. To delete a group, click the Delete group button, and to delete a condition, click the trash can icon.
  5. Click Save at the top right.

You can see what the list looks like in Create a role.

The Product Editor edit screen. Below the title are Basic information (name and description) and the Content tab of the Permissions area (Read, Create, and Edit groups). The Delete, Ask AI, List, Assign, and Save buttons are at the top right, and the right panel shows the Role ID and Changes

When you save, the changed permissions apply to every member who has the role and every token it's bound to (Editing a role applies to everyone who has it).

Let members edit only the products they created

These steps let colleagues with "Product Editor" read all products, but edit only the products they created themselves.

  1. Open "Product Editor" by following Edit a role.
  2. Click the Content tab.
  3. In the Edit group's allow condition, click the creator field (it shows Any Users).
  4. Select The requesting user.
  5. Click Save at the top right.

The expanded list of the creator field in the Edit group's allow condition. Below the search field are Any Users (selected) and The requesting user, followed by weegloo snow and Minji Kim in the Members group and a Space Access Tokens group

Now the colleague can read all products and create new ones, but can edit only the products they created. How this is evaluated is covered in Narrowing by creator.

Allow running only one specific Script

These steps let colleagues with "Product Editor" run only one Script, "Fill Product Description".

  1. Open "Product Editor" by following Edit a role.
  2. Click the Script tab.
  3. Click the Add group button.
  4. In the list of actions that appears, select Execute.
  5. In the allow condition of the new Execute group, select "Fill Product Description" in the Script field (it shows Any Scripts).
  6. Click the Save button at the top right.

The Script tab. The Execute group's allow condition has the Script field (Any Scripts) and the creator field (Any Users), followed by the exclusion conditions section and the Add group button

The screen above shows the Script field left at its default, Any Scripts.

The expanded list of the Script field in the Execute group's allow condition. It has Any Scripts (selected), Fill Product Description, and Restock Order

Turn on a settings permission

These steps turn on Manage Tags so that colleagues with "Product Editor" can create Tags such as "Bestsellers" themselves.

  1. Open "Product Editor" by following Edit a role.
  2. Click the Settings tab.
  3. Select Manage Tags.
  4. Click the Save button at the top right.

The Settings tab with only Manage Tags selected. The Select all checkbox at the top changes to the partly selected mark (−)

To turn on all fourteen items, select Select all at the top. What each item lets members do is covered in Settings permissions on the Settings tab.

Delete a role

These steps delete the "Product Read-Only" role, which is no longer used. A role that's assigned to members or bound to tokens can't be deleted (Deleting items such as Locale, Tag, and Script).

  1. In the left menu, click Roles & Permissions.
  2. In the list, check that the Members, Delivery Access Tokens, and Space Access Tokens columns of the "Product Read-Only" row show "0 members" and "0 tokens".
  3. If any column isn't 0, take this role out of those members' roles or remove those members from the Space, and delete the tokens. How to change a member's roles is covered in Member and invitation rules, and how to delete a token is covered in Delete a token.
  4. Click the "Product Read-Only" row.
  5. Click the Delete button at the top right.
  6. In the Delete Role window, click Delete.

The Delete button next to the Role guide link at the top right of the Product Read-Only screen

The Delete Role window. It shows "Are you sure you want to delete this Role? Members assigned to this Role will lose their permissions." with the Cancel and Delete buttons

A deleted role can't be restored (Deletion can't be undone).

Troubleshooting

ProblemCauseWhat to do
You can't create or edit rolesYour role doesn't have Manage RolesAsk an Administrator of that Space for Manage Roles, or ask them to edit the role for you
You can't edit or delete the Administrator roleAdministrator is a role created along with the Space, so it can't be edited or deletedCreate a new role with only the permissions you need
A role won't deleteIt's assigned to members or bound to tokensClear the members and tokens first, following Delete a role
With a new role, the colleague can do more than you expectedYou saved the new role without changing the All actions groups its Content Type, Content, and Media tabs start withDelete the All actions group on that tab, or change it to the actions you need (What a new role starts with)
You added an exclude condition, but the action isn't blockedThe same role has an All actions group, or another role the member has allows that actionInstead of an All actions group, add a group for each action you need and block with that group's exclude conditions. Check the member's other roles too
After you added only exclude conditions, the colleague can work with even more itemsA group whose allow condition is left at "Any…" with only exclude conditions allows everything outside the excluded scopeNarrow the allow condition to the scope you want to allow, or delete the group for the action you meant to block (A group with only exclude conditions allows everything outside them)
Clicking Save shows the notice "Couldn't save"A tab still has a condition you need to fix before saving. Either a group has both an allow condition with every field at "Any…" and a narrowed allow condition, or a Create group still has a condition that sets a field Content Studio locksClick the button in the notice to go to that tab, then fix or delete the condition that has a notice under it (Every field in a condition must match, but only one condition has to match)
Only some items appear in the colleague's listsThe Read group's allow condition is narrowed by Content Type, creator, or TagCheck the Read group's allow condition to make sure the scope is what you intended
The colleague can't edit products other people createdThe creator field in the Edit group's allow condition is The requesting userTo let them edit all products, change the creator field to Any Users
You gave permissions, but menus or items don't appear on the colleague's screenYou edited a role the colleague doesn't have, or the colleague has had the same screen open since before the editCheck the colleague's roles, as described in Member and invitation rules, and ask the colleague to open the screen again
Things you turned on in the Settings tab can't be done with a Space Access TokenSettings permissions work only for peopleLog in to Content Studio, or use a Personal Access Token
You can't create or edit a Script with a Space Access TokenIn a role bound to a Space Access Token, only Execute on the Script tab takes effectLog in to Content Studio, or use a Personal Access Token
A Delivery Access Token bound to a role narrowed by Tag reads other products tooThe Tag field doesn't apply to reads through public deliveryNarrow the read scope by Content Type
Nothing can be read through public delivery with a role narrowed by creatorThe published version has no creator information, and published versions of Media never include it. Or a role narrowed to The requesting user as creator is bound to a Delivery Access Token (The bound role decides what a token can do)Turn on Include author info on publish for that Content Type and publish again (Turn author info on or off). Don't narrow Media conditions by creator. Remove creator conditions from roles you bind to tokens
A Script won't saveThe saver's role doesn't allow the actions the Script works with, without scope conditionsHave someone who's allowed those actions without conditions save it (for example, a member with the Administrator role)
You can't run a ScriptThe role has no Execute group, or the Execute group's allow condition is narrowed to another Script or by creatorAdd that Script to the Execute group's allow conditions
A Scheduler turned offIts creator's role lost Execute on that ScriptRestore the permission, then turn the Scheduler back on (It turns off if its creator loses the run permission)
A colleague edited their own role and widened their permissionsThe colleague's role has Manage Roles turned onHave a member with the Administrator role narrow that role again and turn off Manage Roles
The Version Conflict window appears when you try to save a roleSomeone else saved the same role after you opened the screenClick Discard My Changes & Reload, check what changed, then make your edits again and save
A limit notice appears when you try to create a roleYou've reached your plan's role limit. The limit is counted across the whole OrganizationDelete roles you don't use, or upgrade your plan (When you exceed a count limit)
A role isn't savedThe name is empty or longer than 64 characters, the description is longer than 128 characters, or a group has more than 30 allow or exclude conditionsCut them down to fit the Limits