Select to view content in your preferred language

Notebook Web Tool: Current User Parameter

118
2
a week ago
Status: Open
ScottShield
New Contributor III

When creating a Notebook Web Tool, I would like to add functions that are specific to a User. A new function in arcgis api for python that can be used to determine the current user or an input parameter that detects the user.

Knowing the user can help with custom functions when not all users have the same AGOL roles or user types, or for customizing based on the needs of a user.

The Arcade function for GetUser() is a good example

2 Comments
jcarlson

It's there: arcgis.gis.UserManager.me

The me property retrieves the information of the logged in User object.

You can use the output of that to adjust your code for the logged-in user.

ScottShield

Thanks @jcarlson 
I confirmed that it works using a notebook web tool