Configuring API roles

You can modify the base configuration API role files, and you can create new ones.

To deploy changes to API files (either modifying an existing one or creating a new one):

  • In development mode, you can hotswap the files.
  • In production mode, you must restart PolicyCenter.

Create an API role file

Procedure

  1. In Guidewire Studio, navigate to configuration > config > Integration > roles.
  2. Right-click the roles folder, and then select New > File.
    • In order for the file to be available to the system APIs, the file must be declared directly in the roles folder. It cannot be declared in a subfolder.
  3. In the New File dialog, enter the name of the role file. Name the file RoleName.role.yaml.
  4. Specify the role name as: name: roleName.
  5. Specify the endpoints, operations, and fields that the role grants. You can use the base configuration API role files as a reference.
  6. Deploy the file by either hotswapping or restarting PolicyCenter.

Modify an API role file

Procedure

  1. In Guidewire Studio, navigate to configuration > config > Integration > roles and open the file.
  2. Modify the file as needed.
  3. Deploy the file by either hotswapping or restarting PolicyCenter.