2020-10-21
11:22 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
how to list the user groups have access to authenticate on the authentication agents
Looking for a PSQL select statement to list all the user groups <-----> agents.
Thanks for your help!
4 Replies
2020-10-21
01:15 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This rough query will list all groups tied to an agent
either for logon aliases, or for group restriction.
select g.name as GroupName, ah.name as AgentName
from
ims_group_data g, am_agent_group ag,
am_agent aa, am_host ah
where
g.id = ag.group_id
and
ag.agent_id = aa.id
and
ah.id = aa.host_id;
-----------------
add
and
aa.is_restricted is true;
if you only want to see restricted agents and don't care about logon aliases.
2020-10-21
01:42 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you! You saved me tons of time.
2020-10-21
06:09 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
one more question: trying to pull out the last date the token was used for authentication but could not find that in all the token related tables.
2020-10-21
06:52 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
found the last_login_date from the am_token_oob.
