Adrian_Santamaria | 2022-04-21 10:40:14 UTC | #1
Hello
I'm not very sure about how to use the topic v2.audits.entitytype.{id}.entityid.{id} What are those IDs?
For example, lets imagine that I want to monitor every time an AccessToken is issued for a user. I've tried with:
v2.audits.entitytype.AccessToken.entityid.the_user_idv2.audits.entitytype.PeoplePermissions.entityid.the_user_idv2.audits.entitytype.PeoplePermissions.entityid.AccessTokenv2.audits.entitytype.User.entityid.the_user_id
However, none of those work. How would it be?
jacobshaw | 2022-04-22 07:25:27 UTC | #2
Hi @Adrian_Santamaria,
User is not an entity type, but AuthUser is. The entityid should correspond with the entitytype.
v2.audits.entitytype.AuthUser.entityid.[userId]
Substituting AuthUser will allow you to see notifications when the user is authenticated, such as:
{
"id": "[id]",
"userId": "[user_id]",
"username": {
"id": ""
},
"clientId": {},
"serviceName": "PeoplePermissions",
"eventTime": "2022-04-21T23:52:37.000Z",
"message": {
"localizableMessageCode": "USER_AUTH_SUCCESS",
"message": "successful authentication by user",
"messageWithParams": "",
"messageParams": {}
},
"action": "Authenticate",
"entityType": "AuthUser",
"entity": {
"id": "[entity_id]",
"name": "email@example.com"
}
}
jacobshaw | 2022-04-22 00:09:52 UTC | #3
Also check out the PeoplePermissions section of the Action catalog. The left column represents Entity Type and the right column represents the event
https://developer.genesys.cloud/platform/audit/actioncatalog#peoplepermissions
Adrian_Santamaria | 2022-04-22 07:39:51 UTC | #4
Ok, thank you Jacob.
Sadly, one of the main reasons for us to monitor that was to get in real time the IPs used to log in, for security reasons. As other Entities do include that info, is there any reason for this one to exclude it?
Also, although that Action catalog in the documentation is fine, I would suggest to make it a little more verbose, because sometimes having just the list can be not clear enough :slight_smile: .
system | 2022-05-23 07:40:42 UTC | #5
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 14394