You are here

Specifying the current user

When making an Alfresco REST API call, your application might not know the user ID of the currently authenticated user. You can use the string -me- to represent that user in request URLs, and PUT and POST request bodies.

For example, assuming the currently authenticated user is fred.bloggs@yourcompany.com the following URL will return a list of site memberships for the currently authenticated user:

https://api.alfresco.com/yourcompany.com/public/alfresco/versions/1/people/fred.bloggs@yourcompany.com/sites

Using the current user -me-, the following URL will return the same list of site memberships:

https://api.alfresco.com/yourcompany.com/public/alfresco/versions/1/people/-me-/sites

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.