Hi,
I need to process documents on in various workspaces so I tried to use the contentmanagement API to fetch workspaces and then the documents. In the developer centers (API Explorer) it works but when I used the java SDK I get no results (0 match for workspaces) without using filters:
WorkspaceEntityListing contentmanagementWorkspaces =
contentManagementApi.getContentmanagementWorkspaces(25, 1, null, null);
URL sent by the SDK: https://api.euw2.pure.cloud/api/v2/contentmanagement/workspaces?pageSize=25&pageNumber=1&access=content
Either there is something wrong with the SDK or it is because the API explorer uses my user (master admin role) and the client credential Oauth client has no permission to see the workspaces at all. I checked and the OAuth client has the master admin role assigned and i also have General / Content Management Admin enabled.
Am I missing something here? I suspect it is because of the user permissions but if it is master admin with all permissions enabled then it should work, shouldnt it?
thanks,
Zsolt
Specifying 'content' access will return all workspaces the user has document access to, while 'admin' access will return all group workspaces the user has administrative rights to.
Client credentials are explicitly not a user, so any API endpoints that rely on identifying the requesting user will typically not work with client credentials. I would suggest opening a case with Genesys Cloud Care to verify the data in your org is being returned as expected (we have no access to that info here) and report that the API endpoint is failing to return a not.a.user error code when requested using client credentials; IIRC content management APIs generally don't work with client credentials. It's possible that this could also be due to divisions, but that's something Care will have to look into because it requires inspecting your org's data.
Thanks Tim, this explain it. Possible this could be added to the documentation as well as this is an important aspect for the developer.
I was hoping the master admin role would grant access to all groups which is not the case.
Zsolt