Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

REST API and CMDB roles

Jay Jav
Tera Contributor

Hi there,

I want to develop a REST API that manipulates the CMDB CI's.

when I add the iti role we can run CRUD commands like read and update CI attributes via REST API interface.

 

But when I remove this role and add roles like sn_cmdb_editor I cannot modify the attribute via REST API,

 

what can be the issue?

 

Is there any role OOTB that lets you modify CI via the REST interface?

1 REPLY 1

Daniel Madsen
Kilo Sage
Kilo Sage

I think the problem is that sn_cmdb_editor is the CMDB Workspace scope:

DanielMadsen_0-1726163306218.png

The sn_change_write role on the other hand is in the global scope:

DanielMadsen_1-1726163369797.png

Try to set this role instead.