In order to get information about the currently authenticated user and its associations to other resources you can work with the me resource (you can also refer to it by its old name currentUser ). The current user related resources gives your information which is useful when building clients for instance for data entry and user management. The following describes these resources and their purpose.
Provides basic information about the user that you are currently logged in as, including username, user credentials, assigned organisation units:
Gives information about currently unread messages and interpretations:
Lists all messages and interpretations in the inbox (including replies):
In order to change password, this end point can be used to validate newly entered password. Password validation will be done based on PasswordValidationRules configured in the system. This end point support POST and password string should be sent in POST body.
While changing password, this end point (support POST) can be used to verify old password. Password string should be sent in POST body.
Gives the full profile information for current user. This endpoint support both GET to retrieve profile and POST to update profile (the exact same format is used):
Returns the set of authorities granted to the current user:
Returns true or false, indicating whether the current user has been granted the given <auth> authorization:
Lists all organisation units directly assigned to the user:
Gives all the datasets assigned to the users organisation units, and their direct children. This endpoint contains all required information to build a form based on one of our datasets. If you want all descendants of your assigned organisation units, you can use the query parameter includeDescendants=true :
Gives all the programs assigned to the users organisation units, and their direct children. This endpoint contains all required information to build a form based on one of our datasets. If you want all descendants of your assigned organisation units, you can use the query parameter includeDescendants=true :
Gives the data approval levels which are relevant to the current user: