I tried declaritive Users API - but didn't see it....
# gooddata-cloud
d
I tried declaritive Users API - but didn't see it. I need an API call that gives me the date that the user was added to the system. Such as all users added after May 20th. Is there a call that can do that?
m
This metadata isn’t available directly within the platform, you’ll need to retrieve it from the OIDC provider. Is there a specific use case you're looking to support?
d
We have not developed into our app to add specific user into UDF user groups based on data in the database. As a bandaid solution i wanted to find recently added users and then add them to the UDF user group (if applicable) until our dev team can integrate that into user creation in the app I do not know what OIDC stands for
m
Thanks for the details. Although I’m not familiar with your provisioning process, I’d like to suggest using a provisional user group to which newly created users can be added. You could then apply the UDF to this group and distribute users to their corresponding groups once the appropriate permissions are set. When creating users via the API or UI, the user group can be specified during the user creation process:
Copy code
"userGroups": {
            "data": [{
            "id": "<userGroupId>",
            "type": "userGroup"
            }]
OIDC stands for OpenID Connect, the authentication method supported by the platform. More details here. I’ll submit product feedback on your behalf so our engineering team is aware that having user creation date metadata available directly in the platform would be highly valuable for your use case.
p
🎉 New note created.
d
Yes We have the user groups already said up, but its on our dev teams backlog to do it on user set up. So, I was looking at a bandaid solution until its there. AKA, the only thing I could think of is creating a quick script that looked at when a user was added open to other suggestions that are not when a user is set up
j
Hi Doug, as my colleague mentioned, we have already submitted product feedback and I believe that best option would be to check the logs in your OIDC or create some script/logic there for checking new user creation entries. However, this would need to happen on your end.
I would like to also mention that we offer an Audit Log implementation but currently its only available for our enterprise tier customers: https://www.gooddata.com/docs/cloud/security-and-compliance/audit-log/