Hi Team, We are trying to apply a user data filte...
# gooddata-cloud
v
Hi Team, We are trying to apply a user data filter to restrict access to data based on the program_id, as outlined in the GoodData documentation: User Data Filters | GoodData Docs We successfully posted the filter to the API, as shown in the screenshot below. The response confirms that the filter was created (201 Created), and it appears correctly configured with the MAQL expression: {label/program_id} = "1CMUJNOhFQMPsbVJwUHzrX" However, when we check the Analyze tab, the data still appears unfiltered — we are able to see records beyond the specified program_id. Could you please help us understand why the filter isn’t being enforced in the Analyze view? Is there any additional configuration or propagation step we might be missing?
m
Hi Vivek, happy to help. To confirm, if you GET the UDF, can you check by using 'include=users at the end, like: GET
api/v1/entities/workspaces/:workspaceId/userDataFilters?include=users
Is this in Production or Dev environment?
v
Dev
m
I have impersonate your org using our Admin user to check the API end points, and the user ID from the screenshot does not exist in the org. I think you have a wrong user id. Please check. Most of your users have around 10 characters
v
Hi Mauricio, We are trying to get all the user and userGroups, but getting status 404 not Found. Could you please help us ?
a
@Mauricio Cabezas is there any way to identify users & usergroup of specific workspace using API?
m
Hi Anjali, you mean the user or userGroup who has access in the Workspace, no? And @Vivek Kushwaha I would like to know if are you able to get the users, it seems the endpoint is not correct, is for the complete organization, whithout workspace ID
Maybe you can try this:
GET {{baseUrl}}/api/v1/actions/userManagement/users?workspace=workspaceID
The same with the endpoint
/userGroups?workspace=workspaceID