How to elevate role programmatically
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2017 10:24 AM
I am looking for a piece of code to evelate the role programmatically ?
My context is following :
- My app deals with roles and ACLs,
- We are currently developping a plugin to integrate with ServiceNow,
- We use ServiceNow REST APIs to do so :
- creation roles with REST API,
- modification of ACL (attach a role to an ACL)
To perform 1, everything is fine.
To perform 2, we need first to elevate role to make it possible.
Is it possible to elevate role programmatically ?
Thanks in advance, Olivier
Labels:
- Labels:
-
Scripting and Coding
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2017 10:29 AM
Hello Olivier,
You should be able to update the table sys_security_acl_role table directly with out elevating permissions.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-01-2017 10:32 AM
Check out this thread - Running Script with Elevated Access