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

NameTypeRequiredDescription
idintYThe ID of the object you want grant permissions to
userstringY *Comma separated list of user IDs you want to give access
user_groupintY *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

NameTypeRequiredDescription
namestringYThe name
configurationstringYJSON configuration
user_group_idintNUser Group Id
descriptionstringNThe description

Example of configuration

[
    {
        "effect": "allow",
        "resource_type": "*",
        "resource_path": "*",
        "methods": [
            "*"
        ],
        "actions": [
            "*"
        ],
        "resources": [
            "entity:tracking/id:1",
			"entity:tracking/id:2"
        ]
    }
]