Role Required to update company field via API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-31-2023 08:41 AM
Hello, I'm testing the REST API, and I'm looking to change the company field on an existing incident.
When I run the following with admin credentials, the company field is updated successfully:
curl -X PUT "https://devXXXXX.service-now.com/api/now/table/incident/4d185d2387f16110ab9aeb173cbb351b" -d '{"company":"227cdfb03710200044e0bfc8bcbe5d6b"}' -H "Authorization: Basic ..." -H "Content-Type: application/json"
When I run the same command with an user's credentials that have itil and itil_admin roles assigned, the field is not updated (and frustratingly there is no error, it silently does not update the field).
Looking through the role documentation here (https://docs.servicenow.com/bundle/utah-platform-administration/page/administer/roles/reference/r_Ba...) I don't see any indicators as to what role would be required to update this field on this table. Any suggestions, or additional documentation to look through?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-07-2025 10:44 AM
There is task.company ACL oob that allows only admins to write to this field that prevents you from updating the field.