How to: Setup a feature permission
Prerequisites
Reviewed the page Permissions - Features permissions.
A folder has already been created containing Spark services.
The folder is accessible by a user group that begins with
user:. Check if the tenant is a Private tenant in the User menu.For a Shared tenant, we will use
user:pfas the user group instead.
Example for downloading an API call
Let's take an example we would like to download the Excel representation of an API call using the API key for authorization. The instructions below explain how to setup the API key and the associated feature permissions.
Visit the Permissions - Features permissions screen to identify the feature permissions that you would like to be exposed via an API key.
In this example the we are interested in the Download as Excel (legacy) API which is associated with the
Spark.DownloadServiceByCallId.jsonfeature permission.
Check which permissions are needed to access the particular services using Set permissions on folders. Let's say for example all of the services of interest are in a folders accessible by
user:teamgreen.Follow the steps Add user groups to create a user group that will be associated with the feature permissions of interest. For example it could be
user:downloadcall. No users need to be assigned to this user group.Follow the steps in Add API key groups to create a new API key group and API key instance. It should include:
user:teamgreenin other words, permission to access the requested services. For a shared tenant we will useuser:pfwhich has access to all services in the environment.AND
user:downloadcallin other words permission to perform particular actions, in this case download the Excel file with the API call embedded.
Return to the Permissions - Features permissions screen.
Identify the feature permission of interest
Spark.DownloadServiceByCallId.jsonand click the view icon.Alternatively if it is acceptable for the key to be used for all of the available feature permissions, then open
Spark.AllEncompassingProxy.json.
Add
user:downloadcallto the user groups assigned to the feature permission then Close the modal.
Now compose the API call with the API key. Remember the API request should headers for :
x-synthetic-keyfor the previously created API key.x-tenant-namefor the tenant name.
Last updated
