zgzgorg / iam-backend

0 stars 2 forks source link

implement group concept for account #54

Open kis87988 opened 3 years ago

kis87988 commented 3 years ago

As a user, may be a group admin, member, or manager. We should define some sets of group roles.

  1. a user can be a group A admin that should be able to do operations for the group, such as approval of a user who wants to join group A
  2. a user can be an organization admin, that can be able to change declined user to approve and regroup to pending approval with the right group, and approve new user too.

Outcome:

  1. design a way to know what group and role of the user with some API result
  2. change the schema to include the group role concept
  3. the group role should be as same as google workspace groups.