Lithosphere The Lithium Community

Highlighted
Occasional Contributor TalendCommunity
Occasional Contributor

Query users's role

Hi guys

I am using the following query to get user's role, but it returns nothing, I am sure this user has roles, I have tried different user id.

https://api.lithium.com/community/2.0/yutwg22796/search?q=SELECT * FROM roles where users.id%3D'30'

//30 is the user id. 

the response is:

{
"status": "success",
"message": "",
"http_code": 200,
"data": {
"type": "roles",
"list_item_type": "role",
"size": 0,
"items": []
},
"metadata": {}
}

 

Regards

Shong

0 Kudos
3 Replies
Honored Contributor Honored Contributor
Honored Contributor

Re: Query users's role

Have you tried the V1 api instead for roles?

Varun | Weaving magic with Lithium!

Recent Ideas: Rewarding Module | Soft Delete | Self-Accepted Solutions
0 Kudos
Reply
Loading...
Occasional Contributor TalendCommunity
Occasional Contributor

Re: Query users's role

No, I have never tried V1 API, I am using V2.
0 Kudos
Reply
Loading...
Honored Contributor Honored Contributor
Honored Contributor

Re: Query users's role

@TalendCommunity - You should try the V1 and V2 for the same user to confirm if they both return same results or different.

Varun | Weaving magic with Lithium!

Recent Ideas: Rewarding Module | Soft Delete | Self-Accepted Solutions
0 Kudos
Reply
Loading...