# Setting space permissions for a user

You can give users permissions to manage or view objects, or allow access to engines in different spaces.

If you need to assign space permissions to a service account, see [Assigning space permissions to a service account](https://help.qlik.com/talend/r/en-US/Cloud/api-user-guide/assign-workspace-permission-to-service-account).

## Before you begin

* You must have Environment Administrator role in Talend Management Console.
* You must know the IDs of the space and user for which your are setting the permissions.

## About this task

You can access the Management Console API via [this link](https://api.talend.com/apis/). You'll find a list of the URLs corresponding to each data center in [Accessing Talend Cloud applications](https://help.qlik.com/talend/en-US/installation-guide-windows/Cloud/talend-cloud-application-url).

## Procedure

1. Use the GET /security/workspaces/{workspaceId}/users/{userId}/permissions endpoint to read the current permissions of the user for the selected space.
   ### Example
   ```
   GET https://api.us.cloud.talend.com/security/workspaces/7a35e78eaea645620e47f826/users/d13404b5-e9nc-4g5f-9904-a5f0dc287fb0/permissions
   ```
2. If you are assigning permissions to a user that did not have any permissions on the specified space, use the POST /security/workspaces/{workspaceId}/users/{userId}/permissions endpoint and add the permission(s) in the body of the request.
   ### Example
   ```
   POST https://api.us.cloud.talend.com/security/workspaces/7a35e78eaea645620e47f826/users/d13404b5-e9nc-4g5f-9904-a5f0dc287fb0/permissions
   ["AUTHOR", "EXECUTE"]
   ```
3. If you are adding a new permission to an already assigned user on the specified space, use the PUT /security/workspaces/{workspaceId}/users/{userId}/permissions endpoint and add the permission(s) in the body of the request.
   ### Example
   ```
   PUT https://api.us.cloud.talend.com/security/workspaces/7a35e78eaea645620e47f826/users/d13404b5-e9nc-4g5f-9904-a5f0dc287fb0/permissions
   ["AUTHOR", "EXECUTE"]
   ```