Permissions

A user can have bespoke permissions if needed, but by default, they are attached to the role he belongs to. The OAuth2.0 token scope contains the list of permissions and it's also available in the /oauth response.

This is the list of permissions per role, as configured in out user repository.

location-provider

{
  "permissions": [
    "can-create-locations",
    "can-retrieve-locations",
    "can-update-locations",
    "can-delete-own-locations",
    "can-manage-opening-times-rules",
    "can-search-locations"
  ]
}

retailer

{
  "permissions": [
    "can-retrieve-locations",
    "can-search-locations",
    "can-manage-opening-times-rules"
  ]
}

metapack

{
  "permissions": [
    "can-geocode",
    "can-create-locations",
    "can-retrieve-locations",
    "can-update-locations",
    "can-delete-own-locations",
    "can-manage-opening-times-rules",
    "can-search-locations",
    "can-delete-all-locations",
    "can-list-retailers",
    "can-edit-retailer",
    "can-create-retailers",
    "can-read-retailers",
    "can-update-retailers",
    "can-delete-retailers",
    "can-create-consolidators",
    "can-read-consolidators",
    "can-update-consolidators",
    "can-delete-consolidators",
    "can-list-location-providers",
    "can-create-location-providers",
    "can-update-location-providers",
    "can-retrieve-location-providers",
    "can-manage-accounts",
    "can-create-configurations",
    "can-list-configurations",
    "can-read-configurations"
  ]
}

metapack-mgmt

{
  "permissions": [
    "can-search-locations",
    "can-list-retailers",
    "can-edit-retailer",
    "can-create-retailers",
    "can-read-retailers",
    "can-update-retailers",
    "can-delete-retailers",
    "can-create-consolidators",
    "can-read-consolidators",
    "can-update-consolidators",
    "can-delete-consolidators",
    "can-list-location-providers",
    "can-create-location-providers",
    "can-update-location-providers",
    "can-retrieve-location-providers",
    "can-manage-accounts",
    "can-create-configurations",
    "can-list-configurations",
    "can-read-configurations",
    "can-delete-all-locations"
  ]
}

results matching ""

    No results matching ""