|
BLOG
|
The History endpoint of the REST API is a great tool to dig into information about events occurring in your organization. Although you easily download a comprehensive CSV of events as an administrator in ArcGIS Online, the REST API, provides the option to customize the data returned and to ask more specific questions. For an example of how to use the history CSV, check out this blog: https://www.esri.com/arcgis-blog/products/arcgis-/administration/exploring-the-organization-activity-log-csv For this blog, I am going to explore the needed queries to export information about login events for a specific organization. To use specific parameters with this API currently, the csv format must be used due to: BUG-000120745. This is planned to be addressed in a future release, but the CSV is a great format for large amounts of information. Scenario: Andy the Administrator wants to understand which of his users have logged into ArcGIS Online and from which apps in February 2019. He has a sneaking suspicion that his employee Oreo J. Sampson doesn’t know his password but is afraid to ask for it to be reset as he asks every single day. Andy is going to verify the login information of his organization to verify Detective Steps: Formulate the query: Url: https://sampson23.maps.arcgis.com/sharing/rest/portals/self/history? Parameters: all=true – returns events for all members in the organization start=0 – starts at the first record num=10000 – largest amount of events returned (requires csv format) f=csv – returns result in a csv sortOrder=asc – information output in ascending order token = “6hVsODGfBpk5X_hGc0MOrnxmddIk4bL4hP8FyOAxM0QxL3VEw86iTdB” – admin token required fromDate =2019-02-01 – start of date range toDate=2019-02-28 – end of date range actions= failedlogin – events to be returned Sample Url constructed: https://sampson23.maps.arcgis.com/sharing/rest/portals/self/history?all=true&start=0&actions=failedLogin&sortOrder=asc&toDate=2019-02-28&fromDate=2019-02-01&num=10000&f=csv&token=<token> Submit the request and view the resulting CSV (Failed Login) Note that some fields have been changed to anonymize data for publication) After inspecting the CSV, you can notice that Oreo failed to login on February 1 st and didn’t fail again. To find out if Oreo ever successfully logged in, just add login to the actions parameter to receive failed login and login events: https://sampson23.maps.arcgis.com/sharing/rest/portals/self/history?all=true&start=0&actions=failedlogin,login&sortOrder=asc&toDate=2019-02-28&fromDate=2019-02-01&num=10000&f=csv&token=<token> Reading the output of the resulting CSV, I can see that Oreo eventually logged into ArcGIS Online using ArcGIS Online and ArcGIS Desktop. With these results, Andy can understand who has been logging into the organization, successfully, unsuccessfully and from which app. A note about login actions: A login action is recorded everytime a successful call is made to the oath2 or generate token login. If you click “Keep me signed in” on the ArcGIS login form then the token will be valid for 2 weeks; the /signin endpoint will not be called and no record will be added to the history log. *Note. Only available with ArcGIS Online https://community.esri.com/community/gis/web-gis/arcgisonline/blog/2019/03/16/generate-a-token?sr=search&searchId=7be441a7-7a1c-4790-9f71-75c0231db009&searchIndex=1
... View more
03-15-2019
03:13 PM
|
4
|
8
|
10254
|
|
POST
|
I was able to open the layer up with just one layer. Maybe this was added to an existing map. Try clicking open in new map when you open the feature layer to ensure that you are starting on a fresh new canvas. Thanks, Kelly
... View more
03-12-2019
01:00 PM
|
0
|
0
|
1067
|
|
POST
|
Hi Nicole, My kind colleague Chris Whitmore, informed me that I am mixing up two item types being code samples and code attachments. I'll use this post to differentiate between the two. A Code Attachment is a related to a Web Application Item type that is hidden from the content view in ArcGIS Online but is queryable by AGO-Assistant and the Python API. This can be used to include code (as a zipfile) for users to download and have access to your code for a configurable app or other sample. Code Attachment—You can attach code (as a ZIP file) to your apps. This can be helpful if you are sharing a sample or a configurable app and want others to have access to your code. To update a code attachment without resetting the download counter on the item, use Update Code and upload a ZIP file with the same name as the original ZIP file. If you want to attach a new file, first delete the existing file; then use Attach Code. This will reset the download count on the item. Item details—ArcGIS Online Help | ArcGIS This is an optional component, but if you have added it to an item, I think it be something that you want to keep. Code Samples are a different but similar item type that can be seen in My Content. As they are standalone code samples unrelated to other content they can be seen in the Code Sharing website. Again, you can delete this, but it may be needed if this was specifically uploaded for sharing code samples: Add items—ArcGIS Online Help | ArcGIS Let us know about any other questions, -Kelly
... View more
03-12-2019
10:55 AM
|
3
|
1
|
12654
|
|
POST
|
Thanks for the update Jeff. It sounds like you have something working. If you do want to consider uploading images, here is some information about credit charges for tile and data storage. Uploading images to ArcGIS Online will be charged according to the file storage rates of 1.2 credits per 1 GB of storage per month. Generally file storage is an inexpensive way to store files. ArcGIS Online Service Credits by Capability | Esri -Kelly
... View more
03-12-2019
09:21 AM
|
1
|
1
|
6948
|
|
POST
|
Please check reply below for updated information. Yes correct they will only appear if on the code sharing website if they are shared publicly. You can delete the files at any time if you don't use them. They are just another item type for sharing. -Kelly
... View more
03-12-2019
09:14 AM
|
0
|
2
|
12654
|
|
POST
|
Code samples are a type of item that includes a script. This is used to help users easily find code samples in ArcGIS Online. These item types are indexed and displayed through this website: ArcGIS Code Sharing -Kelly
... View more
03-11-2019
10:12 PM
|
0
|
4
|
12654
|
|
POST
|
Hi, If you are trying to edit a hosted feature service in ArcMap, ensure that you create a local copy, edit the data and then sync edits as described in this documentation: Making a local copy of a feature service for editing—Help | ArcGIS Desktop -Kelly
... View more
03-11-2019
10:07 PM
|
1
|
1
|
1698
|
|
POST
|
I would suggest creating a role with the edit privilege described by Victoria Anderson. IF you only want editors to add features only, set this setting on the layer editing settings: Manage hosted feature layers—ArcGIS Online Help | ArcGIS -Kelly
... View more
03-11-2019
10:03 PM
|
0
|
0
|
1132
|
|
POST
|
Some additional information about this bug can be found here: https://community.esri.com/people/ARex-esristaff/blog/2019/03/12/why-cant-i-use-the-add-item-dialog-in-arcgis-online?sr=search&searchId=a4b18d65-2d97-49a7-aba0-70e0a964723c&searchIndex=4
... View more
03-11-2019
09:57 PM
|
0
|
0
|
3527
|
|
POST
|
Hi Zachary, When using the edit button in map viewer, are you able to see the default value when you add new features? Mike Minami -Kelly
... View more
03-11-2019
09:50 PM
|
0
|
0
|
6123
|
|
POST
|
What browser are you using? If you are using chrome, you may be running into this issue: https://community.esri.com/people/ARex-esristaff/blog/2019/03/12/why-cant-i-use-the-add-item-dialog-in-arcgis-online?sr=search&searchId=53d7b603-032f-429b-8f20-3fc4301e8f94&searchIndex=1 If you are, try another browser or use incognito mode. Let us know if that fixes the issue or if you are still running into problems uploading the item. -Kelly
... View more
03-11-2019
09:30 PM
|
0
|
0
|
16081
|
|
POST
|
HI Stephanie, I gave this another test in incognito mode and it looks like I was running into a browser bug, outlined in this blog: https://community.esri.com/people/ARex-esristaff/blog/2019/03/12/why-cant-i-use-the-add-item-dialog-in-arcgis-online Here is an example of the published FGDB. http://arcg.is/0yq8KD If you are using chrome, try using another browser or open it in incognito mode. Let me know if changing up the browser works. A fix should be out in an upcoming release of chrome. -Kelly
... View more
03-11-2019
09:27 PM
|
0
|
0
|
1067
|
|
POST
|
You need either to be an Administrator or a member with a customer role with invite member privilege to see the invite member option. -Kelly
... View more
03-11-2019
04:34 PM
|
0
|
0
|
773
|
|
POST
|
Stay tuned for upcoming releases of ArcGIS Online. In this upcoming release, you will be able to see thumbnails of attachments in pop ups for some of the 4x configurable apps (like Media Map).
... View more
03-11-2019
04:31 PM
|
1
|
0
|
1687
|
|
POST
|
HI Jeff, Sounds like you need to install a signed certificate on your webserver. Browsers, and the Internet in general is requiring https, so this would be recommended if you are going to reference documents on your webserver. If this is just for testing, try allowing mixed content in a browser like IE or chrome. Does this data need to stay internally on your network? If not, I would suggest uploading the items to ArcGIS Online and referencing the data links. ArcGIS Online can host pdfs and has https enabled by default. Thanks, Kelly
... View more
03-11-2019
04:28 PM
|
1
|
3
|
6948
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 11-11-2016 10:09 AM | |
| 2 | 02-20-2018 04:07 PM | |
| 1 | 02-22-2018 03:18 PM | |
| 1 | 07-19-2017 09:39 AM | |
| 1 | 03-18-2019 09:32 AM |
| Online Status |
Offline
|
| Date Last Visited |
06-14-2023
06:56 PM
|