- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
I've been trying to find a way to access the logged in user's details from a custom UI Page made in React using the ServiceNow SDK v4.0.2.
The only examples given have been using fetch requests to tables using the token retrieved from g_ck for authentication. I'm uncertain how to get this information given that I can't seem to access standard client-side objects, or call script includes from the custom UI Page.
I feel like I'm just missing something here if anyone knows how to accomplish this, a hint would be super appreciated.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Have you tried this api?
api/now/ui/user/current_user
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
yesterday
Thank you so much Bryce, I don't know how I missed that.
I'll be sure to ask the members of my team that are more experienced with the REST API first next time!