Hello,
When i login and tried to get list Of user Roles through REST API then i can get only one User Role that is ‘NotAuthenticatedUser’. how i will set User as ‘AuthenticatedUser’ so that i can get list of User Roles.
Thanks Kinjal.
Hello,
When i login and tried to get list Of user Roles through REST API then i can get only one User Role that is ‘NotAuthenticatedUser’. how i will set User as ‘AuthenticatedUser’ so that i can get list of User Roles.
Thanks Kinjal.
Hello, Kinjal!
Make sure that you send “user-token” header in “GET /users/userroles” request. If it’s not present - only “NonAuthenticatedUser” role would be returned. If the header is present and its value is valid - you’ll get list of the current user roles.
User token is returned in response for login request.
best regards,
Alex
okay thanks, now i am getting ‘AuthenticatedUser’ in response.