Get the Reddit app

Subreddit for ServiceNow users, admins, devs, platform owners, CTOs and everything in between.

Report on all AssignmentGroups

Just as the heading says, does anyone know how I can export a list of all assignment groups in my tenant?

Maybe a report in ServiceNow then export to csv?

By continuing, you agree to our User Agreement and acknowledge that you understand the Privacy Policy .

Enter the 6-digit code from your authenticator app

You’ve set up two-factor authentication for this account.

Enter a 6-digit backup code

Create your username and password.

Reddit is anonymous, so your username is what you’ll go by here. Choose wisely—because once you get a name, you can’t change it.

Reset your password

Enter your email address or username and we’ll send you a link to reset your password

Check your inbox

An email with a link to reset your password was sent to the email address associated with your account

Choose a Reddit account to continue

  • Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers
  • Advertising & Talent Reach devs & technologists worldwide about your product, service or employer brand
  • OverflowAI GenAI features for Teams
  • OverflowAPI Train & fine-tune LLMs
  • Labs The future of collective knowledge sharing
  • About the company Visit the blog

Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Get early access and see previews of new features.

Populate Assignment group based on service offering and location in servicenow

I want to update the assignment group to a particular assignment group when the condition fulfills on RITM ie. service offering is xyz and location is abc, then it should update.

For example, there is one catalog item that is being raised by GETit and RITM is generated with an assignment group. I want to update that value when the matching conditions are fulfilled.

I tried using assignment rules but again it doesnt work if the field has already a value and in my case assignment group already has a value, we just need to update it.

Can someone please help me here.

Mansi Goel's user avatar

  • What’s setting the assignment group in the first place already? If it’s a workflow, then change the logic in the workflow to match your criteria, if it’s an assignment rule, then give your new rule a lower order so it takes precedence –  Nick Parsons Commented Jun 12 at 13:16

Know someone who can answer? Share a link to this question via email , Twitter , or Facebook .

Your answer.

Reminder: Answers generated by artificial intelligence tools are not allowed on Stack Overflow. Learn more

Sign up or log in

Post as a guest.

Required, but never shown

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy .

Browse other questions tagged servicenow or ask your own question .

  • The Overflow Blog
  • Best practices for cost-efficient Kafka clusters
  • The hidden cost of speed
  • Featured on Meta
  • Announcing a change to the data-dump process
  • Bringing clarity to status tag usage on meta sites
  • What does a new user need in a homepage experience on Stack Overflow?
  • Feedback requested: How do you use tag hover descriptions for curating and do...
  • Staging Ground Reviewer Motivation

Hot Network Questions

  • Can a quadrilateral polygon have 3 obtuse angles?
  • How should I tell my manager that he could delay my retirement with a raise?
  • Short story about humanoid creatures living on ice, which can swim under the ice and eat the moss/plants that grow on the underside of the ice
  • Light switch that is flush or recessed (next to fridge door)
  • Why is a USB memory stick getting hotter when connected to USB-3 (compared to USB-2)?
  • Why doesn’t dust interfere with the adhesion of geckos’ feet?
  • Convert 8 Bit brainfuck to 1 bit Brainfuck / Boolfuck
  • Titus 1:2 and the Greek word αἰωνίων (aiōniōn)
  • Why do the opposite of skillful virtues result in remorse?
  • Invest smaller lump sum vs investing (larger) monthly amount
  • Fusion September 2024: Where are we with respect to "engineering break even"?
  • Was the term " these little ones" used as a code word for believers?
  • How do I apologize to a lecturer who told me not to ever call him again?
  • Largest prime number with +, -, ÷
  • Why does the church of latter day saints not recognize the obvious sin of the angel Moroni according to the account of Joseph Smith's own words?
  • Could an empire rise by economic power?
  • How to Interpret Statistically Non-Significant Estimates and Rule Out Large Effects?
  • Is response variable/dependent variable data required for simr simulation?
  • Is there an error in Lurie, HTT, Proposition 6.1.2.6.?
  • there is a subscript bug in beamer
  • Do all instances of a given string get replaced under a rewrite rule?
  • Escape from the magic prison
  • Is loss of availability automatically a security incident?
  • How to run only selected lines of a shell script?

servicenow list of assignment groups

ServiceNow Guru Logo

User Object Cheat Sheet

No matter what system you’re working in, it is always critical to be able to identify information about the user who is accessing that system. Being able to identify who the user is, what their groups and/or roles are, and what other attributes their user record has are all important pieces of information that allow you to provide that user with a good experience (without giving them information they don’t need to have or shouldn’t have). ServiceNow gives administrators some pretty simple ways to identify this information in the form of a couple of user objects and corresponding methods. This article describes the functions and methods you can use to get information about the users accessing your system.

GlideSystem User Object

T he GlideSystem (gs) user object is designed to be used in any server-side JavaScript (Business rules, UI Actions, System security, etc.). The following table shows how to use this object and its corresponding functions and methods.

Function/MethodReturn ValueUsage
gs.getUser()Returns a reference to the user object for the currently logged-in user.var userObject = gs.getUser();
gs.getUserByID()Returns a reference to the user object for the user ID (or sys_id) provided.var userObject = gs.getUser().getUserByID('employee');
gs.getUserName()Returns the User ID (user_name) for the currently logged-in user.
e.g. 'employee'
var user_name = gs.getUserName();
gs.getUserDisplayName()Returns the display value for the currently logged-in user.
e.g. 'Joe Employee'
var userDisplay = gs.getUserDisplayName();
gs.getUserID()Returns the sys_id string value for the currently logged-in user.var userID = gs.getUserID();
getFirstName()Returns the first name of the currently logged-in user.var firstName = gs.getUser().getFirstName();
getLastName()Returns the last name of the currently logged-in user.var lastName = gs.getUser().getLastName();
getEmail()Returns the email address of the currently logged-in user.var email = gs.getUser().getEmail();
getDepartmentID()Returns the department sys_id of the currently logged-in user.var deptID = gs.getUser().getDepartmentID();
getCompanyID()Returns the company sys_id of the currently logged-in user.var companyID = gs.getUser().getCompanyID();
getCompanyRecord()Returns the company GlideRecord of the currently logged-in user.var company = gs.getUser().getCompanyRecord();
getLanguage()Returns the language of the currently logged-in user.var language = gs.getUser().getLanguage();
getLocation()Returns the location of the currently logged-in user.var location = gs.getUser().getLocation();
getDomainID()Returns the domain sys_id of the currently logged-in user (only used for instances using domain separation).var domainID = gs.getUser().getDomainID();
getDomainDisplayValue()Returns the domain display value of the currently logged-in user (only used for instances using domain separation).var domainName = gs.getUser().getDomainDisplayValue();
getManagerID()Returns the manager sys_id of the currently logged-in user.var managerID = gs.getUser().getManagerID();
getMyGroups()Returns a list of all groups that the currently logged-in user is a member of.var groups = gs.getUser().getMyGroups();
isMemberOf()Returns true if the user is a member of the given group, false otherwise.Takes either a group sys_id or a group name as an argument.
gs.hasRole()Returns true if the user has the given role, false otherwise.if(gs.hasRole('itil')){ //Do something... }
gs.hasRole()Returns true if the user has one of the given roles, false otherwise.if(gs.hasRole('itil,admin')){
//If user has 'itil' OR 'admin' role then Do something...
}
hasRoles()Returns true if the user has any roles at all, false if the user has no role (i.e. an ess user).if(!gs.getUser().hasRoles()){
//User is an ess user...
}

It is also very simple to get user information even if the attribute you want to retrieve is not listed above by using a ‘gs.getUser().getRecord()’ call as shown here…

g_user User Object

The g_user object can be used only in UI policies and Client scripts. Contrary to its naming, it is not truly a user object. g_user is actually just a handful of cached user properties that are accessible to client-side JavaScript. This eliminates the need for most GlideRecord queries from the client to get user information (which can incur a fairly significant performance hit if not used judiciously).

Property/MethodReturn value
g_user.userNameUser name of the current user e.g. employee
g_user.firstNameFirst name of the current user e.g. Joe
g_user.lastNameLast name of the current user e.g. Employee
g_user.userIDsys_id of the current user e.g. 681ccaf9c0a8016400b98a06818d57c7
g_user.hasRole()True if the current user has the role specified, false otherwise. ALWAYS returns true if the user has the 'admin' role.

Usage:
g_user.hasRole('itil')
g_user.hasRoleExactly()True if the current user has the exact role specified, false otherwise, regardless of 'admin' role.

Usage:
g_user.hasRoleExactly('itil')
g_user.hasRoles()True if the current user has at least one role specified, false otherwise.

Usage:
g_user.hasRoles('itil', 'admin')

It is often necessary to determine if a user is a member of a given group from the client as well. Although there is no convenience method for determining this from the client, you can get the information by performing a GlideRecord query. Here’s an example…

To get any additional information about the currently logged-in user from a client-script or UI policy, you need to use a GlideRecord query. If at all possible, you should use a server-side technique described above since GlideRecord queries can have performance implications when initiated from a client script. For the situations where there’s no way around it, you could use a script similar to the one shown below to query from the client for more information about the currently logged in user.

Useful Scripts

There are quite a few documented examples of some common uses of these script methods. These scripts can be found on the ServiceNow docs site .

servicenow list of assignment groups

Mark Stanger

Date Posted:

June 23, 2021

Share This:

30 Comments

' src=

Thanks for the great tips… My personal favorite:

gs.getUser().getRecord().getValue(‘title’);

never knew you could do that, awesome!

I was looking for a way to get the default set to the User Time Zone. Looked everywhere and it was on my favorite site..!

javascript:gs.getUser().getRecord().getValue(‘time_zone’);

Note that if you use this method, and you have the time zone selector turned on, you may run into issues. The time zone selector sets the User’s Session TZ, but not their default.

For more consistent results, use the following: var tzStr = gs.getSession().getTimeZoneName(); // “US/Pacific” var jTZ = gs.getSession().getTimeZone(); // sun.util.calendar.ZoneInfo java object. APIDoc linked below

Java doc ZoneInfo api: http://www.docjar.com/docs/api/sun/util/calendar/ZoneInfo.html

Thank you for the great work… finally one place to get the information about the UserObject stuff…

Just one note:

– the hasRole() returns true, if the user has the role specified (e.g. hasRole(role)) OR the admin role.

– to get a true/false for a specific role, use hasRoleExactly(role), which will only return true, if the user has the itil-role.

' src=

Thanks for the feedback. This method had some issues in the past (which is why I didn’t include it). It looks like it’s in the official ServiceNow doc now though so hopefully I’m safe in including it here :). I just added it to the article above.

I looked at the Usage example for “isMemberOf()” and also checked the wiki article for the function “getUserByID” ( http://wiki.servicenow.com/index.php?title=Getting_a_User_Object&redirect=no#Method_Detail ) but I cannot get it to work.

Is this function maybe retired?

Some code I played with is:

I’m not having any luck with it either. I haven’t heard of it being retired, but you’ll probably need to contact ServiceNow support to see. Please post back here with your findings.

Here we go: first we have to initialize a variable with “getUser()”. After that we can get any user object using it’s sys_id or UserID. Below the updated code to make the example work:

Thanks Andreas! I’ve updated the table above with this solution.

is it possible to check whether he/she is one of the member of Assignment group? Please guide me friends.

Yes. Check out ‘isMemberOf’ above.

sorry Mark. i forget to mention, is it possible to do this in client script?

Not directly. You could easily do a client-side GlideRecord query against the ‘sys_user_grmember’ table to find that though. Just make sure to do an asynchronous gliderecord query with a callback. You can find an example of this type of script here… https://servicenowguru.com/scripting/client-scripts-scripting/gform-getreference-callback/

Thanks Mark.

Thanks for all the info, very handy and interesting indeed. One question though, is there a method like the var hasRoleExactly that will work server-side? I can get it to work okay client-side but that’s it.

Thanks Martin

I don’t know of any built-in way of doing this, but you could always query the ‘sys_user_has_role’ table directly or create an on-demand script include that would allow you to call it in a shorthand way.

Thanks Mark, I thought that might be the alternative :)

How does one get the client’s business number? The wiki shows how to get the mobile number, but not the business number.

http://wiki.servicenow.com/index.php?title=Getting_a_User_Object

Up above I explain for both back-end and client-side code how you can get any attribute even if there’s not a specific function defined. You can get any attribute from the back-end like this. gs.getUser().getRecord().getValue(‘title’);

If I understand that correctly, then I could use this in a script of a workflow that works on a condition of an incident being submitted, to set the value of phone for the incident, to the user’s business phone, with the following script?

current.u_cos_contact_no = gs.getUser().getRecord().getValue(‘phone’);

Correct. As long as ‘phone’ is the name of the field you want to pull the value from.

On my incident form, “Contact Phone” variable is called u_cos_contact_no.

In my client’s user form, “Business Phone” variable is called phone.

For my workflow, would I want to do a custom script, or simply put do a Set Values, and then use javascript:gs.getUser().getRecord().getValue(‘phone’) ?

An update, I made a script step in the workflow, and the following works in my system:

var businessphone = gs.getUser().getRecord().getValue(‘phone’); current.u_cos_contact_no = businessphone;

Now to try it as a Set Value step in the workflow, with javascript:gs.getUser().getRecord().getValue(‘phone’); Not sure if it will work, but it’s work a shot to eliminate extra steps in the workflow.

Sorry to keep filling this up, but I can’t figure out how to edit my previous post.

On further testing, javascript:gs.getUser().getRecord().getValue(‘phone’) does work in a Set Value step of the workflow, however it pulls the phone number of the user logging in the incident, not the phone number of who the “client” has been set to for the incident. Any way to modify this?

Much thanks Mark

I wanted to know if we could access the company of the user involved, using the g_user field.

Thanks and Regards, Vivek

Sure. Take a look at the ‘title’ example at the bottom of the article. It shows how you can use a GlideRecord query to get any additional information about the user (including company) that you want.

These articles are so helpful, thank you Mark for making this public information.

Extremely helpful, thank you, Mark!

Thank you for the awesome tips! Your whole website is fantastic. :-)

Article still relevant after 13 years. Amazing !

Comments are closed.

servicenow list of assignment groups

  • Using Import Sets for REST Integration in ServiceNow August 26th, 2024

servicenow list of assignment groups

Achim says:

' src=

Jacob Kimball says:

  • Announcements
  • Architecture
  • Business rules
  • Client scripts
  • Content management
  • Email Notifications
  • General knowledge
  • Generative AI
  • Graphical workflow
  • Integration
  • Knowledge Management
  • Miscellaneous
  • Performance
  • Relationships
  • Script includes
  • Service Portal
  • Single Sign-on
  • System Definition
  • Web Services

Related Posts

Leveraging Joins in GlideRecord Queries

  • Leveraging Joins in GlideRecord Queries

The Security Risks of Math.random() and the Solution with GlideSecureRandomUtil API in ServiceNow

The Security Risks of Math.random() and the Solution with GlideSecureRandomUtil API in ServiceNow

Leveraging User Criteria in your custom applications

Leveraging User Criteria in your custom applications

Fresh content direct to your inbox.

Just add your email and hit subscribe to stay informed.

servicenow list of assignment groups

Since 2009, ServiceNow Guru has been THE go-to source of ServiceNow technical content and knowledge for all ServiceNow professionals.

  • Using Import Sets for REST Integration in ServiceNow
  • Customize the Virtual Agent Chat Button in Service Portal

© Copyright 2009 – 2024 | All Rights Reserved

web analytics

developer portal logo

Your browser or one of your plugins is not allowing JavaScript to be run. This is a bummer since the ServiceNow Developers Site is dynamic and depends on JavaScript to function. If you want to visit this site, please disable the plugin, activate this site for JavaScript or use another browser.

ServiceNerd

ServiceNow Advanced Reference Qualifier | How to filter the Assignment group based on Assigned To

Been in a predicament in ServiceNow, where you know the person a task needs to be assigned to, but don’t know the right group? I got you!

In this video, we add an advanced reference qualifier on a dictionary override on the assignment group fields (for incidents) that calls a server side script include to run some funky glideRecord queries and return as back a refined list of group sys_id’s. Its then these groups that are shown when you click the Assignment Group magnifying glass.

https://docs.servicenow.com/en-US/bundle/tokyo-platform-administration/page/script/server-scripting/concept/c_ReferenceQualifiers.html

https://www.servicenow.com/community/developer-forum/dynamic-advanced-reference-qualifier-examples/m-p/1386576

Reference Qualifier bit:

javascript:new global.AssignmentGroupFilter().refineAssignmentGroup(current.assigned_to)

Script Include:

Tags: advanced reference qualifier beth anglin GlideRecord reference field reference qualifier script include servicenerd servicenow admin servicenow demo servicenow tutorial sysid in

You may also like...

servicenow list of assignment groups

How to create a Variable Set

ServiceNow Flow Diagramming

ServiceNow San Diego Flow Diagramming | Flow Designer stuff #Shorts

ServiceNow Hyperlink

ServiceNow: How to embed hyperlinks in work notes | clickable links

  • Next story Flow Designer Error Handling ServiceNow | How to…
  • Previous story ServiceNow GlideAggregate Count | Is it better than GlideRecord getRowCount()

ServiceNerd_JustinMeadows

All Videos / New Features / Tips & Tricks

AI in ServiceNow with Justin Meadows | What does it mean?

February 27, 2023

ServiceNow ChatGPT

New Features / Tips & Tricks

What is ChatGPT and Can We Use it for ServiceNow

December 18, 2022

  • Recent Posts
  • Popular Posts
  • Recent Comments

ServiceNow Process Automation Designer (PAD) | What does it do?

ServiceNow Process Automation Designer (PAD) | What does it do?

December 19, 2023

servicenow list of assignment groups

All Videos / Flow Designer

“Do the Following Until” Flow Logic in ServiceNow Flow Designer

September 1, 2023

Dynamic Flow

Exploring Dynamic Flow and Get Flow Output Logic in ServiceNow Flow Designer!

July 24, 2023

servicenow list of assignment groups

All Videos / Flow Designer / Tips & Tricks

Flow Designer Error Handling ServiceNow | How to…

July 3, 2023

servicenow list of assignment groups

June 11, 2023

ServiceNow Hyperlink

Service Catalog / Tips & Tricks

October 30, 2022

ServiceNow Import Set API

Integrations

ServiceNow Inbound REST API | Import Set API

September 12, 2022

servicenow list of assignment groups

New Features / Shorts

ServiceNow San Diego Polaris | ServiceNow Next Experience UI #SanDiego #Polaris #Shorts

February 7, 2022

ServiceNow Flow Template Builder

Flow Designer

ServiceNow Flow Template Builder | Create a template using Flow Template Builder

October 6, 2022

servicenow list of assignment groups

  • artificial intelligence business rule client script flow Flow designer Flow designer development flow designer for service catalog flow designer servicenow flow designer servicenow orlando flow designer servicenow training flow design tutorial g form glideajax GlideRecord integration hub onload script include service catalog service catalog in servicenow service catalogue servicenerd servicenow servicenow admin servicenow administrator training servicenow community servicenow demo servicenow developer servicenow developer training servicenow flow servicenow flow designer servicenow flow designer approval servicenow flow logic servicenow glideajax example ServiceNow how to servicenow integration servicenow microsoft teams servicenow new features ServiceNow Next Experience ServiceNow Polaris servicenow reference field ServiceNow San Diego servicenow shorts servicenow training servicenow tutorial subflow

Learning ServiceNow by Tim Woodruff

Get full access to Learning ServiceNow and 60K+ other titles, with a free 10-day trial of O'Reilly.

There are also live events, courses curated by job role, and more.

Assigned to and Assignment group

The Assigned to [assigned_to] field is a reference  field type that points to the Users [sys_user] table. This field is generally used to designate a user to work on, or be responsible for the task. By default, this field has a reference qualifier (role=itil) set on its dictionary record that prevents any non-itil user from being assigned to a task. You can override this reference qualifier on tables that extend task though, as the Project Task and Service Order tables do, if you have the relevant plugins installed.

The Assignment group [assignment_group] field serves pretty much the same purpose. The reason for having both, is that a workflow might automatically assign a certain type of task ticket to a group, ...

Get Learning ServiceNow now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.

Don’t leave empty-handed

Get Mark Richards’s Software Architecture Patterns ebook to better understand how to design components—and how they should interact.

It’s yours, free.

Cover of Software Architecture Patterns

Check it out now on O’Reilly

Dive in for free with a 10-day trial of the O’Reilly learning platform—then explore all the other resources our members count on to build skills and solve problems every day.

servicenow list of assignment groups

Southwest Airlines Community

  • Discussion Forum
  • Check-In & Boarding
  • Is there something up with boarding assignments??
  • Subscribe to RSS Feed
  • Mark Post as New
  • Mark Post as Read
  • Float this Post for Current User
  • Printer Friendly Page

rakunn

  • Mark as New
  • Get Direct Link
  • Report Inappropriate Content
  • Back to Board
  • Previous Post

dfwskier

No related discussions

Quick links, community champions.

Sign up to get the latest deals.

Connect with us

LinkedIn Icon

Discussion Forum and Stories

Indicates external site which may or may not meet accessibility guidelines

© 2024 Southwest Airlines Co. All Rights Reserved. Use of the Southwest websites and our Company Information constitutes acceptance of our Terms and Conditions . Privacy Policy Trademarks Do Not Sell/Share My Personal Information

  • Southwest Business logo and link
  • Southwest Cargo logo and link

IMAGES

  1. Assignment Group Lookup Tool in ServiceNow

    servicenow list of assignment groups

  2. How to Create an Incident Report Based on Assignment Group in ServiceNow

    servicenow list of assignment groups

  3. ServiceNow

    servicenow list of assignment groups

  4. How to Assign a User to a Group in ServiceNow

    servicenow list of assignment groups

  5. How to create a Reports in ServiceNow || Reports || Assignment groups || ServiceNow

    servicenow list of assignment groups

  6. Automatic support group determination based on SAP transaction

    servicenow list of assignment groups

VIDEO

  1. What does the ServiceNow Sr. Developer Advocate do?

  2. SERVICENOW Users,Groups,Roles@SERVICENOW_Beginners

  3. ServiceNow Best Practice: How to Add ServiceNow Roles to a User Group

  4. 5. ServiceNow

  5. Servicenow list view recommendations

  6. ServiceNow's group field definitions and synchronization between Asset, CI, and TSO records

COMMENTS

  1. Configure the group type for assignment groups

    Loading... Loading...

  2. Can see all assignment groups(Active/Inactive) when using ...

    Loading... Loading...

  3. Create an assignment group

    Create an assignment group - Product Documentation: Utah - Now Support Portal.

  4. ServiceNow

    *Disclaimer: We are reviewing video content for Accessibility standards*How to determine your own, or a colleague's, assignment group.

  5. Report on all AssignmentGroups : r/servicenow

    Some of it will come down to how you're configuring your groups, but I'd start with: Target table: sys_user_group. Conditions: Active is true, Type contains Assignment. 10. Reply. scarng. • 2 yr. ago. Navigator -> sys_user-group.LIST then you can filter and export. 5.

  6. How to get all users from assignment group in service now?While

    As you can see in your image the information for the groups is stored in table sys_user_group. The information which users are assigned to which group is stored in table sys_user_grmember. So the REST query could be a GET to this URL:

  7. Groups

    Name: Name of the group.; Manager: Group manager or lead.; Group email: Group email distribution list or the email address of the group's point of contact, such as the group manager.; Parent: Other group of which this group is a member.The child group inherits the roles of the parent group. So, if a group has a parent, it inherits the roles of the parent group.

  8. ServiceNow Group Best Practices

    Probably one of the easiest traps people fall under is thinking that groups somehow align to departments. Work doesn't happen in silos, work is collaborative - therefore groups should be collaborative and cross functional. ServiceNow already has a department table structure for that purpose. 5) Don't Hardcode groups.

  9. Populate Assignment group based on service offering and location in

    I want to update the assignment group to a particular assignment group when the condition fulfills on RITM ie. service offering is xyz and location is abc, then it should update. For example, there is one catalog item that is being raised by GETit and RITM is generated with an assignment group. I want to update that value when the matching ...

  10. Advanced 'getMyGroups' Function

    In the case of the 'My Groups Work' module under the 'Service Desk' application there is a function called 'getMyGroups' that is used to identify task records where the assignment group value is one of the groups for which the current user is a member. The 'getMyGroups' function simply returns an array of group sys_id values for ...

  11. How to select only users of a specific group into a ...

    A customer had the requirement to restrict a field referencing sys_users to only list active users who are members of a specific group.

  12. Allow Group Managers to Manage Group Members

    answer = true; //Allow access if user has 'user_admin' role or is group manager. } Create ACL ('sys_user_grmember') The create ACL works a little bit differently because we don't have access to 'current.group.manager' before the record is created. Because of this, you need to open up create permissions to the role that your group ...

  13. User Object Cheat Sheet

    Returns a list of all groups that the currently logged-in user is a member of. var groups = gs.getUser().getMyGroups(); isMemberOf() Returns true if the user is a member of the given group, false otherwise. Takes either a group sys_id or a group name as an argument. gs.hasRole() Returns true if the user has the given role, false otherwise.

  14. Users and Groups

    NOTE: You can learn more about lists, forms, and navigation in ServiceNow in the ServiceNow Basics learning module.. Groups. System Administrators can add roles to user records. If a role is applied to a small number of users, adding the role to User records is easily done. If a role needs to be applied to thousands of User records, it can be challenging to complete the process manually.

  15. Setting the Assignment group with Assignment Rules

    In contrast, an Assignment Rule uses the simpler condition builder to specify when it should run. If it matches, then it'll either populate the Assigned to and Assignment group fields with a hardcoded value, or you can use a script. We have got the group we want to use in a property, so this option is perfect. Follow these steps:

  16. Calculation of duration based on assignment group

    Skip to page contentSkip to chat. Calculate the duration of an incident based on the Assignment Group. Most of the cases, the incident will be traversed to multiple teams for resolution. In such cases, if we want to calculate the duration.

  17. ServiceNow Advanced Reference Qualifier

    In this video, we add an advanced reference qualifier on a dictionary override on the assignment group fields (for incidents) that calls a server side script include to run some funky glideRecord queries and return as back a refined list of group sys_id's. Its then these groups that are shown when you click the Assignment Group magnifying glass.

  18. Assigned to and Assignment group

    Assigned to and Assignment group. The Assigned to [assigned_to] field is a reference field type that points to the Users [sys_user] table. This field is generally used to designate a user to work on, or be responsible for the task. By default, this field has a reference qualifier (role=itil) set on its dictionary record that prevents any non ...

  19. Assignment group of record

    The assignment group change on the change of the group membership of the user assigned to the record.

  20. Is there something up with boarding assignments??

    Have a business flight tomorrow that I purchased at least three weeks ago. Am A List Preferred ( have been preferred or A List for 10+ years), and confirmed this is reflected on my ticket. Imagine my shock when my boarding number came as B-47. So I guess, just wondering if anyone else has noticed th...

  21. Handling assignment groups across multiple domains

    When there are multiple domains under a parent domain, assignment groups may need to be shared across these child domains. For example, say there are four parallel domains: TOP/A, TOP/B, TOP/C, TOP/D.

  22. Setting up email push notifications for groups and group ...

    If you need to send out push notifications on mobile devices in addition to an email notification, for any event like task assigned to a group, or change commented on, this can be done through the following