Skip to content

ApplicationUsers

Billcountry Mwaniki edited this page Aug 25, 2020 · 1 revision

ApplicationUsers collection holds information connecting an Application to a User. It holds the necessary scopes dictating the resources a user can access on an application and the permissions keys created by the user can have.

The following is the structure of an Application document:

  • AppUserId (primitive.ObjectId)
  • UserId (primitive.ObjectId)
  • ApplicationId (primitive.ObjectId)
  • Scope ([]uint8)
    • Owner [read logs, write logs, edit users, edit notifications]
    • Developer [read logs, write logs, view users, edit notifications]
    • Viewer [read logs, edit notifications]
  • Status (uint8)
    • 0 active
    • 1 removed
  • Added (time)

Related work

Clone this wiki locally