Comparison of Roles
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-11-2016 05:19 AM
Hi Everyone
Using the following code I am capturing the sys_id of the logged in user in an array.
var gr11 = new GlideRecord('sys_user_role');
gr11.addQuery('name', gs.getUser().getRoles());
gr11.query();
gr11;
var qry2;
var objArray2 = [];
while(gr11.next()) {
objArray2.push(gr11.sys_id.toString());
}
We have a role field in "sys_app_module" table of type "User Roles".
How can I compare the roles field of sys_app_module table with the values(sys_ids) in an array?
Please assist me on this.
Thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-10-2025 08:14 AM
As this is a real old forum record with the Access Analyser Plugin https://www.servicenow.com/docs/bundle/xanadu-platform-security/page/integrate/identity/concept/expl... the topic is already solved.