Permissions
We have a very granular permission system that allows you permission up to individual objects (e.g. an audience) and fields (e.g. the name of an audience).
Contents on this page |
---|
POST /<object_type>/grant
Description
Grant permission on object. Note: This service is embedded in the individual object endpoints, but is currently not yet available on all object types. Please reach out to tech@flxone.com if you need additional support.
Endpoint
/<object_type>/grant
Method
POST
Parameters
Name | Type | Required | Description |
---|---|---|---|
id | int | Y | The ID of the object you want grant permissions to |
user | string | Y * | Comma separated list of user IDs you want to give access |
user_group | int | Y * | Comma separated list of user group IDs you want to give access |
* You need to provide at least one user or one user group. You can also combined these in one call.
POST /permission/index
Description
Add custom permission (advanced usage)
Endpoint
/permission/index
Method
POST
Parameters
Name | Type | Required | Description |
---|---|---|---|
name | string | Y | The name |
configuration | string | Y | JSON configuration |
user_group_id | int | N | User Group Id |
description | string | N | The description |
Example of configuration
[ { "effect": "allow", "resource_type": "*", "resource_path": "*", "methods": [ "*" ], "actions": [ "*" ], "resources": [ "entity:tracking/id:1", "entity:tracking/id:2" ] } ]