ArcGIS Online Blog

Showing results for 
Search instead for 
Did you mean: 

Other Boards in This Place

Latest Activity

(142 Posts)
Esri Contributor

In one week, ArcGIS Online will be enforcing HTTPS Only. Any remaining HTTP Only URLs will become inaccessible, so make sure to update your items to HTTPS!


0 0 28
Occasional Contributor II

Collaborating in ArcGIS Online is a confusing and burdensome process, how could it be improved?


2 3 261
Esri Contributor

Configure your options and secure your ArcGIS Online activity

This webinar will focus on helping organizations with strict security, compliance, and privacy obligations. We will explain ArcGIS Online configuration options and best practices, explore the need for processes and pipelines to govern information delivery, and demonstrate tools to help regularly monitor the security and sharing status of both ArcGIS Online items and the ArcGIS Online organizational account as a whole. We will also introduce and discuss Esri’s product security incident response team and discuss Esri’s incident response process.

Webinar Takeaways

In this webinar, developers will learn more about

  • security and privacy checklist
  • ArcGIS Security Advisor
  • customer governance responsibilities

0 0 50
Esri Regular Contributor

Scripts that use the ArcGIS API for Python to accomplish any automated task within ArcGIS Online usually need to connect to the ArcGIS Online organization first. The easiest way to do this is to hardcode your password into the script. Any of us who have worked with the ArcGIS API for Python are familiar with these ubiquitous lines:

from arcgis.gis import GIS
gis = GIS("", "Username", "Password")‍‍‍‍

However, the reality is that hardcoding passwords into scripts is a security risk for a number of reasons. One of the most common risks is the propensity to mistakenly share a script to a public repository or with colleagues that still contains your embedded password. Thankfully, there are multiple approaches for authenticating to the GIS that remove the password from the script and do not require any sort of login prompt (meaning they can run automatically without human interaction to type a password). 

Option 1: Store your credentials to a profile

This is recommended in the API guide. The profile parameter uses the keyring library to store your username in an unencrypted config file and securely store your password in the operating system's password manager. Once you set the profile, you can log in using just the profile name, referencing the credentials stored in the config file and password manager associated with that specific profile. The sample below shows how to get started:

### Set up a profile
from arcgis.gis import GIS
gis_profile = GIS("", "my_username", "my_password", profile="Esri Support Admin")
print("Profile defined for {}".format(gis_profile))‍‍‍‍‍‍‍‍‍‍‍‍
Profile defined for GIS @ https://<myOrg> version:8.3

Now that we've established the profile, we can connect to the GIS using only the profile parameter:

### Log in with a profile
from arcgis.gis import GIS
gis = GIS("", profile="Esri Support Admin")
print("Connected to the GIS as {}.".format(‍‍‍‍‍‍‍‍
Connected to the GIS as my_username.

Option 2: Directly access keyring to store your password

Keyring is installed in the ArcGIS Pro default Python environment and can be used to securely store a password in the operating system's password manager. 

The concept is similar to setting a profile and accessing it later. The first step is to set the password, and optionally verify that the password has been stored as you expect. ArcGISOnline is set as the argument for the system parameter, used to keep track of which passwords go with which usernames. 

### Set password and optionally verify storage
import keyring
keyring.set_password("ArcGISOnline", "my_username", "my_password")
#Optionally verify password storage
pw = keyring.get_password("ArcGISOnline", "my_username")

With the password set, you can use the get_password() method to retrieve the needed password from the operating system's password manager to sign into the GIS. Since we set ArcGISOnline as the system in the code above, we'll need to use it to retrieve the correct password:

### Access the stored password with keyring and sign into the GIS
from arcgis.gis import GIS
import keyring
pw = keyring.get_password("ArcGISOnline", "my_username")
gis = GIS("", "my_username", pw)
print("Connected to the GIS")‍‍‍‍‍‍‍‍‍‍‍‍
Connected to the GIS

Option 3: Use the active ArcGIS Pro connection

Connecting to the GIS using the active ArcGIS Pro connection is also covered in the API Guide. No credentials are required; you just need to make sure ArcGIS Pro is on your machine and you are connected to the intended ArcGIS Online organization. The really advantageous part about using the Pro connection is that it works with SAML logins; so if you need to automate a script that requires authentication and don't have/do not want to use built-in users, this method is the way to go. To leverage the Pro connection without ArcGIS Pro concurrently running, you'll need to select "Sign me in automatically" when connecting to organization in ArcGIS Pro or take your license offline.

### Use the active Pro connection
### This example uses a SAML login
from arcgis import GIS
gis = GIS("Pro")
GIS @ https://<myOrg> version:8.3


I hope you found these tips helpful for securely automating authentication using the ArcGIS API for Python! Thanks for reading, and please let me know any feedback in the comments below. 

4 0 1,003
Esri Regular Contributor

You may have noticed that ArcGIS Online just underwent its fall update! The team implemented several ArcGIS Ideas‌ in this release - they're administration-heavy this time around, so big thanks to administrators for letting us know your feedback. Check out the list below for the details. 

Configurable tabs in the navigation bar

Administrators can now control which tabs are visible in their organization’s navigation bar for anonymous visitors, organization members, and those who have/don't have map or scene creation privileges. Check out the documentation on this new feature and the blog for a more in-depth description. 

Implemented ideas:

For AGOL home page, ability to hide menu items 

Credit and Activity reports for administrators

The new Credit and Activity reports give administrators the ability to monitor credit transactions and assess organization, member, group, and user activity.  A column for file storage size and feature service storage size has also been added to the Items report first released in the June 2020 update. Check out the blog on reports and the documentation for more information on the updates. 

Implemented ideas:

ArcGIS Online – Exportable Reports For All Credit Usage Types 

Partially implemented ideas:

AGO credit usage download improvements 

Overview individual credit charges for items 

AGO content management - show/sort by size on content pages 


Thanks again for contributing your feedback to the ArcGIS Ideas‌ community, and please continue letting us know how new functionality and improvements to existing features would help your workflows and use cases. 

4 0 2,267
Esri Contributor

Update planned for September 29, 2020

On September 29, from 5:00 p.m. to midnight (PDT), we plan to update ArcGIS Online. The update will include streamlined item sharing with groups, configurable tabs in the navigation bar, more reports for administrators, and improvements in ArcGIS Configurable Apps.

Configurable tabs in the navigation bar

Administrators will be able to configure which tabs appear in their organization’s navigation bar for both members and visitors. Hiding unused tabs will help simplify the user experience.

Additional reports for administrators

Asynchronous reporting continues to expand in ArcGIS Online giving administrators more ways to monitor and assess activity.
• Credit report showing the transaction type and number of credits used by each member in a predefined time period.
• Activity report showing changes made to the organization, members, groups and content. You will be able to see activities such as home page edits, profile modifications, logins, new members and content, and modified sharing settings. This replaces the existing activity log which reported only a limited number of events.

Streamlined item sharing with groups

Group owners and managers will be able to batch add items to a group.

ArcGIS Configurable Apps improvements

ArcGIS Configurable Apps with express setup (Media Map, Minimalist, Interactive Legend, Zone Lookup, Nearby, and Attachment Viewer) continue expanding to make sharing your maps quick, easy, and insightful. Planned improvements include:
• Support for Google Analytics.
• Screenshot widget that allows you to capture the entire app including the pop-up and legend.

Gain early access to what's coming by joining the ArcGIS Online Early Adopter Community.

Join the community →

Please note that all planned updates are subject to change. Our What’s New email, blog article, and documentation will provide a comprehensive list of enhancements.

0 0 1,256
Esri Contributor

Optimize hosted feature layers to support high-volume web traffic

Learn best practices for optimizing your hosted feature layers to support high-volume web traffic. Hosted feature layers are essential building blocks that enable organizations to serve their data from ArcGIS Online's highly scalable cloud infrastructure. In this live webinar, the product team will demonstrate best practices for managing and sharing data using the scalability, flexibility, and security of hosted feature layers.

The same content will be presented twice so you can register for the webinar that best fits your schedule.
Register to attend

1 0 277
Esri Contributor

Wondering what to expect from ArcGIS Online at our virtual User Conference? Our focused agenda will help you identify ArcGIS Online topics that interest you and plan your schedule for July 13-16. The agenda includes live sessions (only available at the time listed) and on-demand sessions (available any time). 

See ArcGIS Online's session agenda in this blog article

We look forward to connecting with you at our virtual User Conference! In addition to the sessions, ArcGIS Online will have a virtual showcase where you can chat and schedule meetings with members of the ArcGIS Online team. 

Helpful links: 

Tip: Once the UC opens (Monday, July 13 at 12:00 a.m. PDT), add live sessions to your calendar. The appointment will include a link that brings you directly to the session. 

1 0 107