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
Welcome to the Technology board!
Curious about our platform? Looking to connect on social technology? You've come to the right place!