IBM Cloud Docs
Managing access

Documentation for the classic Watson Assistant experience has moved. For the most up-to-date version, see Managing access.

Managing access

You can give other people access to your Watson Assistant resources, and control the level of access they get.

Maybe you want one development team to have access to a test assistant and another development team to have access to a production assistant. And you want data scientists to be able to view analytics for user conversation logs from both assistants. And maybe you want a writer to be able to author the dialogue that is used by your assistant to converse with your customers. To manage who can do what with your skills and assistants, you can assign different access roles to different people.

Before you grant access to others

For each person to whom you grant access to your Watson Assistant service instance, decide whether you want to give the person a role with instance-level or resource-level access. Instance-level access applies to all of the assistants and skills in a single service instance. Resource-level access applies to individual skills and assistants within a service instance only.

Granting users access to your resources

  1. If you plan to give a user access to a single skill or assistant in your service instance, get the ID for the skill or assistant. You need to provide the ID in a later step.

    • To get the assistant ID, go to the Assistants page. Click the overflow menu for the assistant, and then click Settings > API Details. Copy the assistant ID and paste it somewhere that you can access it from later.

    • To get the skill ID, go to the Skills page. Click the overflow menu for the skill, and then click View API Details. Copy the skill ID and paste it somewhere that you can access it from later.

  2. Click the User User icon in the page header.

  3. Make a note of the current instance name, and then click Manage Users.

    You are directed to the IBM Cloud® Identity and Access Management (IAM) page.

  4. Click Invite users, and then enter the email addresses of the people to whom you want to grant access.

    If you plan to grant specific resource-level access to different team members, then add one person at a time.

  5. Expand Assign users additional access, and then click IAM services.

  6. In the Which service do you want to assign access to? field, choose Watson Assistant.

  7. Optionally select a specific region and service instance to share with this user.

    Otherwise, the user access you define is applied to all of your service instances in all data center locations where you have instances.

    Remember, you made a note of the name of the current service instance in an earlier step.

  8. Optionally, indicate that you want to give this user access to a specific skill or assistant only by selecting an option from the Resource Type field. And then paste the associated ID (that you copied in an earlier step) into the Assistant or Skill ID field.

  9. Assign the person to the following role types for the service instance:

    • Platform
    • Service

    For help, see Popular role assignments. For a description of all your options, see Understanding roles.

  10. Optional: Select a single resource, such as a skill or assistant, and then assign the person to the appropriate service role for the resource.

    For a description of your resource-level service options, see Resource-level access roles.

  11. Click Add.

  12. Click Invite to finish the process.

When more people contribute to the development of a dialog skill, unintended changes can occur, including skill deletions. Only one person can edit an intent, entity, or a dialog node at a time. If multiple people work on the same item at the same time, then the changes that are made by the person who saves their changes last are the only changes applied. Changes that are made at the same time by someone else and that are saved first are not retained. Coordinate the updates that you plan to make with your team members to prevent anyone from losing their work. Also, consider creating backup copies of your dialog skill regularly, so you can roll back to an earlier version if necessary.

Popular role assignments

To get you started quickly, consider applying these roles at first.

  • To give someone the same level of access to a Watson Assistant service instance as you have, assign the user to the following roles:

    • Instance platform role: Administrator
    • Instance service role: Manager
  • To give someone manager access to a specific set of resources, but read-only access to everything else, assign the user to the following roles:

    • Instance platform role: Viewer
    • Instance service role: Reader

    Then, for each assistant or skill that you want the person to be able to manage, add another role assignment like this:

    • Instance platform role: Viewer
    • For an individual assistant or skill, assign the Manager role.

Understanding roles

Access to Watson Assistant, its service instances and all of the resources that are used by the service is managed by IBM Cloud®. To share a service instance with other users and control access to the instance, you must use the IBM Cloud Identity and Access Management user interface.

IBM Cloud breaks down access definitions into the following role types:

  • Instance-level platform roles
  • Instance-level service roles
  • Resource-level service roles

An instance-level access role is a role that applies to a service instance and all of the resources that are created as part of the instance. A resource-level service role gives you the ability to apply a finer-tuned level of access control to a single skill or assistant in an instance.

Platform roles

A platform role controls a person's ability to access a service instance in IBM Cloud. Choose a platform role to assign to the user.

Table 1. Global platform role details
Role Privileges of the users in this role
Administrator Access and change all resources for the instance, and invite other people to access the instance.
Viewer View the service instance, but cannot invite others to access the instance.

The Editor and Operator platform roles are equivalent to the Administrator role.

At a minimum, you must give someone Viewer platform access to a service instance or they cannot access anything.

Service roles

A service role controls what a person can do in Watson Assistant.

When you assign a service role, you can decide whether to apply the service role to an instance, which effectively applies to every assistant and skill in the instance, or to a specific resource, such as one skill or one assistant.

The highest-level role assignment wins. You can give someone Reader access to everything in an instance, and Manager access to a single skill in that instance. But, you cannot do the opposite. You cannot give a person Manager access to all but one skill. If you assign someone to the Manager role at the instance level, you cannot limit the person's access to a resource in that instance by assigning the person to a Reader level access for a single skill, for example.

Instance-level service roles

Choose a service role for the user that will apply to all of the skills and assistants in the instance.

Table 2. Global service role details
Role Privileges of the users in this role
Reader Open and read all assistants and skills in the service instance, but not edit them.
Writer Read, edit, delete, or create assistants and skill in the service instance.
Manager Read, edit, delete, or create assistants and skills in the service instance; view all conversation logs; access the v1 API for all skills in the instance.

Resource-level service roles

To fine tune a person's level of access to individual skills and assistants within the instance, assign one or more resource-level service roles to the user.

You do not need to assign resource-level roles to people who already have access to all the resources based on their global service role. But, if you want to tailor a bit more who can read, edit, or add to specific assistants or skills within the instance, then apply resource-level roles.

You cannot assign someone to a resource-level role that has fewer privileges than the instance-level role to which the person is assigned. If the person has an instance-level Manager access role, for example, you cannot give them read-only access to a specific assistant. The higher-level role assignment wins.

Table 3. Resource service role details
Role Privileges of the users in this role
Reader Open and read the assistant or skill, but not edit it.
Writer Read, edit, delete, or create an assistant or skill.
Manager Read, edit, delete, or create an assistant or skill, and view conversation logs.

Anyone who creates an assistant or skill is automatically granted the Manager service role to that resource.

Service access examples

  • Reader

    The following screen capture shows you what someone with Reader service access to a resource sees on the Dialog page.

    Shows the dialog page with disabled buttons.

    Most buttons, such as Add node, Add folder, and Save new version are disabled. There is no Analytics option in the navigation. The "Try it out" pane is available.

  • Writer

    This screen capture shows you what someone with Writer service access to a resource sees on the same page.

    Shows the dialog page with buttons enabled, but no Analytics option in nav.

    All of the buttons are available. There is no Analytics option in the navigation.

Common role assignments

Table 4. Common role assignments
Goal Instance-level platform role Instance-level service roles Resource-level service roles
Make someone a service instance co-owner Administrator Manager N/A
Give someone reader access to only one skill or assistant in an instance Viewer, Reader Reader Reader
Allow someone to edit and view logs of all the skills and assistants in the service instance Viewer Manager N/A
Allow someone to edit a skill or assistant in the service instance, but not view logs Viewer, Reader Writer Writer
Give someone full access to only one skill or assistant in an instance Viewer, Reader Reader Manager

N/A stands for no assignment, meaning no role of the type is assigned.

Resource-level role impact on available actions

The Watson Assistant user interface and API comply with the access roles that are defined for a service instance. When someone logs in to the user interface, it adjusts to show only what the current user can access, and it disables functions that the user does not have permissions to do. (For example, a person who is assigned to the Reader role for a dialog skill cannot create or edit entities, intents, or dialog nodes in the skill because the Create {resource} and Edit functions are disabled.) Similarly, the API allows access only to resources and methods that are permitted for the role that is associated with the specified API key.

If you cannot access the API Details page for a skill or assistant, you might not have the access that is required to use the instance-level API credentials. You can use a personal API key instead.

The following table shows the UI and API actions that can be performed by different resource-level service roles.

Table 5. Action privileges per service role
This table has row and column headers. The row headers identify the user interface or API actions. The column headers identify the different resource-level roles. To understand which roles can do an action, go to the row that describes the action, and find the columns for the role you are interested in.
Action Reader Writer Manager
Open and view an assistant or skill checkmark icon checkmark icon checkmark icon
View API details for an assistant or skill checkmark icon
Create an assistant or skill checkmark icon checkmark icon
Rename, edit, delete an assistant or skill checkmark icon checkmark icon
Open, view, create, edit, or delete an integration checkmark icon checkmark icon
Add, swap, or remove skills checkmark icon checkmark icon
Swap skill versions for an assistant checkmark icon checkmark icon
Revert to a previous dialog skill version checkmark icon checkmark icon
Save or delete dialog skill versions checkmark icon checkmark icon
Export a skill or dialog skill version checkmark icon checkmark icon checkmark icon
Duplicate a skill checkmark icon checkmark icon
Change bidirectional preferences checkmark icon checkmark icon
Open and view intents and intent examples checkmark icon checkmark icon checkmark icon
Import, add (including from content catalog), edit, or delete intents or intent examples checkmark icon checkmark icon
Export intents checkmark icon checkmark icon checkmark icon
Manage intent conflicts checkmark icon checkmark icon
Open and view entities checkmark icon checkmark icon checkmark icon
Import, add, edit, or delete entities checkmark icon checkmark icon
Export entities checkmark icon checkmark icon checkmark icon
Enable system entities and fuzzy matching checkmark icon checkmark icon
Add contextual entities checkmark icon checkmark icon
Import, add, edit, or delete actions or action examples checkmark icon checkmark icon
Edit system actions checkmark icon checkmark icon
Open and view dialog nodes or action steps checkmark icon checkmark icon checkmark icon
Add, move, edit, or delete dialog nodes, dialog folders, or action steps checkmark icon checkmark icon
Change dialog node or action step settings checkmark icon checkmark icon
Test and set context in dialog skill "Try it out" pane checkmark icon checkmark icon checkmark icon
Test in actions skill Preview pane checkmark icon checkmark icon checkmark icon
Test in search skill "Try it out" pane checkmark icon checkmark icon checkmark icon
Add, edit, or delete context variables in dialog skills or session variables in actions skills checkmark icon checkmark icon
Improve data from dialog skill "Try it out" pane checkmark icon checkmark icon
View analytics checkmark icon
View intent and intent example recommendations checkmark icon
v1 runtime API (/message endpoint) checkmark icon checkmark icon checkmark icon
v2 runtime API (session and /message endpoints) checkmark icon checkmark icon checkmark icon
v1 authoring API (all but /message endpoint) checkmark icon
v1 and v2 logs API checkmark icon

Access control improvements

Before April 2020, the service access role assignments that were defined for a Watson Assistant service instance in the IBM Cloud dashboard were not applied. Users with either Reader- or Writer-level service access to an instance effectively had Manager-level access. This behavior changed for all data centers as of 2 April 2020. With the access control improvements released, service-level access role assignments are recognized by the product.

How to keep your access

Now that service level access control is supported for instances in your data center, if you have the wrong service level access role to an instance, you might be unable to do things you could do before.

  • If you have Manager service access to a Watson Assistant service, then no action is required. You have the same privileges and can do the same actions within the product now that service-level access control is enabled.
  • If you have a Reader or Writer service access role, then what you can do has changed.

I'm a Reader

With a Reader role, you cannot take any actions in the Watson Assistant application user interface. You can view only the assistants and skills pages. You cannot edit, create, or delete anything, and cannot view analytics.

I'm a Writer

With a Writer role, you can view, edit, create, and delete resources, such as assistants or skills. However, you cannot view analytics or user conversation log information. Only people with a Manager service access role can view the analytics page.

Act now to get the service instance owner to change your access level.

  1. Contact the owner of the service instance.

    The email address of the owner of the service instance is displayed in the User account menu. Click the User icon from the page header. user icon

  2. Ask the owner of the service instance to change your service access role assignment.

    You can copy, edit, and then paste the following text into an email or message that you send to the instance owner.

    You are the owner of the {service instance name} {{site.data.keyword.assistant_classic_short}} service instance. 
    I am currently a {role-you-have} of the instance. 
    Please change my service access role to {role-you-want}.
    For instructions, see https://cloud.ibm.com/docs/assistant?topic=assistant-access-control#access-control-admin-prep.
    

Prevent your collaborators from losing their access

When you create a Watson Assistant service instance, you are assigned to a Manager service access role automatically. Your access has not changed.

If you invited people to your service instance and assigned them to a Reader or Writer service access role, then perform the following steps now.

To change a collaborator's service access role:

  1. Click the User User icon in the page header.

  2. Make a note of the current service instance name, and then select Manage Users from the drop-down.

  3. From the navigation pane, click Users.

    People that you invited to collaborate with you on any service instance are listed.

  4. To see the person's level of access to an instance, click the user's email address, and then click the Access policies tab.

    A list of your instances that this user can access is displayed.

    Shows the service instance that this user can access.

  5. Find the instance for which you want to change this person's access. (The service instance name is referred to as the serviceInstance string.)

    The user's platform access role is listed first. The user's service access role is listed second.

    If only one role is displayed, then you might not have assigned a service access role to the user when you invited them to the instance. Complete the next step to assign a service access role to the user now.

  6. To change the user's role, click the list of actions icon for the entry, and then click Edit.

  7. Click the appropriate service access role checkbox.

    Shows a user's access role details for a service instancein edit mode.

  8. Click Save.

    The page closes and a confirmation message is displayed to indicate that the policy change was successfully saved.