Roles will be added in roles field of user document in database.
Create API to add roles [designer, product_manager, developer, hiring_recruiter] (hard coded) and make sure that [super_user, app_owner, member] or any authoritative role can't be added to the user.
Decisions
How we are going to show the tag? If we are going to make separate section for each role then, how are we handling multiple tags for same user?
On tag basis, no separate section (by Pranav)
Are these roles(PM, designers, HR & developer) self assignable? Perhaps in future?
Developers, Designers and PM are self assignable but could be modified (by Ankush)
Can a non member have these roles?
Yes (by Ankush)
Would these roles be given special permission / access?
Possibly
Technical decisions
Is it ok to hard code these roles (PM, designers, HR & developer)? Or should we have it in database on a separate document so new roles can be added more conveniently?
Role System
Key Factors
roles
field of user document in database.[designer, product_manager, developer, hiring_recruiter]
(hard coded) and make sure that[super_user, app_owner, member]
or any authoritative role can't be added to the user.Decisions
Technical decisions
Flow of the development process