Update User

URL

To update the profile of a specific user, use /users/update.

POST - https://{{nmpUrl}}/users/update

Body

FieldTypeRequiredDescription
emailStringE-mail address of the user.
idStringUser's ID.
profileadmin, certRead, reporting, Data Visualisation, Data Visualisation & CertReadThe profile you wish to associate with a user.
You may create a custom profile.
userIdStringUser's ID.
{ 
	"email": "[email protected]",
	"id": "65ca217cc784dd6e41c32b18",
	"profile": "reporting",
	"userId": "google-oauth2|104793214778422473870"
}

Return Payload

The user's profile has been updated.

{
    "_id": "65ca217cc784dd6e41c32b18",
    "profile": "reporting",
    "email": "[email protected]",
    "deleted": false,
    "userId": "google-oauth2|104793214778422473870",
    "auth0Id": "google-oauth2|104793214778422473870",
    "__v": 0,
    "id": "65ca217cc784dd6e41c32b18"
}