djondinium
9 months agoExpert
restBuilder with search endpoint to return messages with admin privileges?
Hi,
When I call
<#assign comments = restBuilder().method("POST").path("/search").body(query).admin(true).call()>
where
<#assign query = {
"messages": {
"fields": [ "id", "subject", "author.id", "author.first_name", "author.last_name" ],
"sorts": [ "post_time DESC" ],
"constraints": [ { "parent.id": '${messageId}', "board.id": "${nodeId}" } ],
"limit": 20
}
}>
I'm not getting author.first and last name even while making the call as an admin. The first and last name are only visible if user is an admin or has elevated access, all other users will not see the names.
Does anyone know why? Is the admin(boolean) method broken in general or just for the search endpoint?
Thanks!