Custom roles allow to configure configuring roles with custom rights, for example, a role that only has rights to retrive retrieve the delivery promise. A custom role is configured by creating a role entity through API and granting API access rights in the ACL configuration.
Info |
---|
For security resons, at the moment, only an internal OneStock user can make this actions. Please get in touch with your point in contact so we can help you out. |
...
Supported Scopes
Application | Supported |
---|---|
Store App | ✅ - To creat a user and assign it a custom role, the creation must be done from the SA and the role must be listed in the SA configuration. The BO does not yet support custom SA roles. |
Back Office | ❌ |
API | ✅ |
Building a custom role
For Store App roles, the role must also be configured in user_management_options.available_roles
.
1. Create the Role
Roles are created using an API call to POST /roles
. You can find the full API reference here.
...