Skip to content

OrganicityEu-Platform/admin-scripts

Repository files navigation

admin-scripts

A few bash scripts for OrganiCity.

Required packages

  • curl : the well known command-line HTTP client
  • jq : lightweight and flexible command-line JSON processor

see also : Organicity Accounts - Permission Component

1. General purpose scripts

1.1 oc-token

usage : oc-token client_login client_password

Requests an access token on the authentication server using client credentials

1.2 oc-getusers

usage : oc-getusers client_login client_password

Requests an access token on the authentication server using client credentials, then gets the list of all the users subs and names.

see also : Related API

2. Role management scripts

2.1 oc-getroles

usage : oc-getroles client_login client_password userSub

Requests an access token on the authentication server using client credentials, then gets the list of a user (using his/her related userSub) roles.

role example : 'manager-dev:dictionary-user'

see also : Related API

2.2 oc-addrole

usage : oc-addrole client_login client_password userSub roleName

Requests an access token on the authentication server using client credentials, then gives a user (using his/her related userSub) the role roleName.

role example : 'manager-dev:dictionary-user'

see also : Related API

2.3 oc-removerole

usage : oc-removerole client_login client_password userSub roleName

Requests an access token on the authentication server using client credentials, then remove a role to a user identified by his/her sub.

role example : 'manager-dev:dictionary-user'

see also : Related API

2.4 oc-addroletoall

usage : oc-addroletoall client_login client_password roleName

Requests an access token on the authentication server using client credentials, then gives all users the role roleName

role example : 'manager-dev:dictionary-user'

2. misc

2.1 checkRunning

...

About

A few bash scripts for OrganiCity

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages