These docs are for v20.3.44. Click to read the latest docs for v20.3.186.

Discussions

Ask a Question
Back to All

REST Endpoint similar to Membership Endpoint "GetRolesWithLogin"

Hi ASI,

I am developing a secured tool where a user is presented with a login screen to use the tool. But this tool is meant to be used by staff users only.

Is there any rest endpoint where I can check if the credentials work?
If worked, I can save the bearer token in local storage/cookie and use it for other REST Operations.

Questions:
Q1: How to validate if the credentials are of a sysadmin role or a person is a staff/full user?
Q2: How to check if credentials didn't work at all?

Any help with SOAP is also welcomed and appreciated!
Although SOAP is going to be phased out, currently, we have those in the environment where this tool is going to be used.