Skip to end of banner
Go to start of banner

Permissions workflow frontend module

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Implement new permission sets

  1. change permissions in package.json, add new ones and edit existing
  2. stripes-cli

    ## login to okapi
    stripes okapi login diku_admin --okapi $OKAPI_HOST --tenant diku
    ## update app's module descriptor
    stripes mod update --okapi $OKAPI_HOST
    ## enable the module descriptor for your tenant
    stripes mod enable --tenant diku --okapi $HOST
  3. After that the new AND updated permissions should be returned in the response body of the request to the perms endpoint. Note that you have to extend a preset limit, so that all permissions are returned.

    GET ${OKAPI_HOST}/perms/permissions?limit=10000

Test new permissions

list a users permission

stripes perm list --user $USER --okapi $HOST

assign a permission to a user

stripes perm assign --user $USER --okapi $HOST --name permission.name

unassign a permission from a user

stripes perm unassign --user $USER --okapi $HOST --name permission.name




  • No labels