Detect when user joined to a group

Hi, I need to know when user joined to a group.
Using groups/xxx/users I only get the user object without any information on that membership.
I need to know the date user added to group, how can I achieve that ?

Thanks!

Hi Avivtzo, you can probably find that information using the system log API, such as /api/v1/logs?filter=eventType eq “group.user_membership.add” and target.id eq “{group_id}”

https://developer.okta.com/docs/reference/api/system-log/#getting-started