Get an NPS user by host user ID
GET/api/v1/ManagedAccount/ByUserId/:userId
Returns the NPS user that is linked to a host user, including the user's name, account names, email address, last sign-in time, lock state and reviewer flag. Use it when you have a host user ID, for example from a resource scan, and need the NPS user. The policies, resources and activeSessions arrays in the response are always empty and scheduledSessionCount is 0; use the Policies call for the user's policies.
Permission required: Admin or App role.
Request
Responses
- 200
- 400
- 403
- 404
Returns the NPS user.
The lookup failed. The body is a text message.
The signed-in user does not have the required role.
No NPS user is linked to that host user.