The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Any API is available to get ACL/Role assigned to AI Agents

nishadm
Kilo Contributor

nishadm_0-1758115577188.png

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 ?

1 REPLY 1

M Iftikhar
Mega Sage

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.