Select to view content in your preferred language

authenticate with .sde connection file

382
1
01-18-2023 05:32 AM
kapalczynski
Frequent Contributor

I can authenticate using the below... But I want to hide my credentials.

How can I do that?

gis = GIS('https://vdot.maps.arcgis.com', username, password)
user_list = gis.users.search(query=search_user, max_users=maxResults)

 

0 Kudos
1 Reply
RhettZufelt
MVP Notable Contributor

Hide where?  Depending on where running from:

gis = GIS("home")

Will use the last user logged in with Pro (if hasn't been longer than 14 days).

R_

0 Kudos