Hi Team, While trying to invoke below API resource
api/4.0/content_metadata_access
We are seeing error as below
“message”: “Not found”
Any clue?
We are looking to fetch permissions on a folder.
Hi Team, While trying to invoke below API resource
api/4.0/content_metadata_access
We are seeing error as below
“message”: “Not found”
Any clue?
We are looking to fetch permissions on a folder.
Hey @Audy ,
A few things here. The first thing you will need to do is get the content metadata id for a given folder.
To do this you’ll first need to run Get Folder.
In my case, I have folder 6 so from this URL: https://{domain}.looker.app/folders/6. I would run this using the Python SDK:
response = sdk.folder(folder_id="6")
From there I can pull this from the response:
"content_metadata_id": "12"
Then I need to use the Get All Content Metadata Accesses method:
response = sdk.all_content_metadata_accesses(content_metadata_id="12")
Then it the response I get the different permissions for different groups for said content.
I hope that helps!