Rest api - retrieve data

HI,
I am trying to retrieve data for only the logged in user via rest API.
I have changed the settings on user permissions and deny retrieve hoping the owner’s policy will take place. (see the attached screenshot).


The data is now not being received at all after i deny the retrieve role.

How do i set the owner policy for REST user?

The data is now not being received at all after i deny the retrieve role.

“At all” for every user or only for the RestUser?

How do i set the owner policy for REST user?

What do you mean? You can set policy for the RestUser, for the real loggedin user, or for both. RestUser is a dynamic user which exists only during request.

If you revoke the RESTuser role, then you cannot do REST calls. That simple :slightly_smiling_face:

1 Like

How do i retrieve data for the logged in user via rest API ??

I am using appgyver.

@innocent_machage, response for the log in API includes user-token. To make a request for the logged in user, make sure to include the user-token HTTP request header.

The documentation describes in in detail: