Open gigincg opened 4 years ago
for api on create users, the role has to be defined in this case right?
are these correct?
get users api
path: '/api/v1/users'
for updating existing users, adding the role field? path: '/api/v1/users', method: 'PATCH'
So an admin who has access to lets say 1-10 facilities out of 1-100 can they have access to other facilities, is this disabled from api?
An admin with single PHC can add only to that existing PHC.
Yes, these are new APIs that are under dev. We'll hopefully have them soon.
Build a Component to Create a User and Set privileges to the new or existing users. One of the features of the project that extend decentralization is for users to be allowed to create users with equal or lesser privileges. For Instance a District admin can create a user with either of the following permissions:
We need to build UI components to allow the creation of users with minimal information and to search and allot a set of PHCs to the new user. (A searchable list of PHCs with a select all option should be able to pull this off).