Prepopulate field based on User login
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2024 09:25 AM
Hi
I am using the Auto-populate feature to populate department variable based on user login, which is working correctly.
The issue is, User (without any role in ServiceNow) wants to submit a request on someone else behalf, once the user selects the user, the user DEPARTMENT field does not get prepopulate.
What could be wrong?
I assigned the user a ITIL role and she was able to select a user and the department was pre-populated.
Thank you

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2024 09:32 AM - edited 08-30-2024 09:37 AM
What are field type are you using for the Requestor Name field variable? If you use the Requested for variable type, rather than a reference type, Requested for variables honors User Criteria. If this is the case, your user with no roles is not able to see the information from the department table due to ACLs or User Criteria, which is why it isn't populating
This link may help explain the Requested for type vs reference
Hidden Gems: Requested For Variable Type