How to add employee to branch

To add a user to a role you can go through that diagram. In this diagram you can see the endpoints that are described in the previous sections.

Endpoint
Parameters
Responce/result

1

no parameters

a list of available branches with appropriate roles, where you should choose a suitable role, if you need another role go to step 5

2

no parameters

a list of employees, you should copy {guid} of the employee that you want to add to branch-role, if you need another employee go to step 4

3

  • {branch_name} from step 1

  • {user_guid} from step 2

a user is added to branch

4

see description inCreate employee, {branch_name} from step 1

a new employee in {branch_name} is created

5

see description in

a new role for branch access is created

6

no parameters

a list of availible permissions, you should find permission that you need with "keto_kind": "branch", copy {guid} of that permission. If you need another permission go to step 8

7

  • {permission_guid} from step 6

  • {branch_name} from step 1

a new permission added to branch

8

no parameters

availible branch access scopes, copy a name of scope that you need. If you need another scope, go to step 9

9

see description in Create permissions

  • "keto_kind": "branch,

  • {keto_scope_name} from step 8

a new permission is created

Last updated