authenticate with .sde connection file

232
1
01-18-2023 05:32 AM
kapalczynski
Occasional Contributor III

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 Frequent 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