getUserContentAccess
GET
/api/v1/users/{id}/content-access
const url = 'https://example.com/api/v1/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/content-access';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/users/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/content-accessRead which part of the Media library an account reaches and which tags it may apply. Requires the users.manage capability and the admin scope.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Responses
Section titled “ Responses ”Content access policy
Media typeapplication/json
object
data
required
object
policy
required
object
libraryMode
required
string
tagMode
required
string
folders
required
Array<object>
object
id
required
string format: uuid
name
required
string
path
Folder ancestry joined with ’ / ’.
string
tags
required
Array<object>
object
id
required
string format: uuid
name
required
string
path
Folder ancestry joined with ’ / ’.
string
configured
required
False when the account has no stored policy, which means it reaches no content until one is saved.
boolean
ownerUnrestricted
required
The account is an Owner and always reaches everything.
boolean
Example
{ "data": { "policy": { "libraryMode": "all", "tagMode": "all" } }}Dashboard authentication required
Insufficient role
User not found