Any API is available to get ACL/Role assigned to AI Agents
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
In the recent zurich release ServiceNow introduced new feature with which we can directly assign roles to Agents (Define who can access the AI Agent) through ServiceNow UI
To get those assigned roles/ACL do we have any API available ??
And is it possible to update those roles ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 hours ago
Hi @nishadm,
While the Zurich release introduces a new user interface for managing AI Agent access, there is no specific, high-level API documented exclusively for this feature. However, you can programmatically manage these role assignments by using ServiceNow's standard REST APIs. You can use the Table API to interact with the appropriate tables that store user and role information, such as adding or removing records from the sys_user_has_role table to grant or revoke roles like sn_aia_admin or sn_aia_viewer. This allows you to get and update the roles assigned to users who can access and configure the AI Agent capabilities.
Hope this helps!
Thanks & Regards,
Muhammad Iftikhar
If my response helped, please mark it as the accepted solution and helpful so others can benefit as well.