Community
All Communities
Products
ArcGIS Pro
ArcGIS Survey123
ArcGIS Online
ArcGIS Enterprise
Data Management
Geoprocessing
ArcGIS Web AppBuilder
ArcGIS Experience Builder
ArcGIS Dashboards
ArcGIS CityEngine
ArcGIS Spatial Analyst
All Products Communities
Industries
Education
Water Resources
State & Local Government
Transportation
Gas and Pipeline
Water Utilities
Roads and Highways
Telecommunications
Natural Resources
Electric
Public Safety
All Industries Communities
Developers
Python
JavaScript Maps SDK
Native Maps SDKs
ArcGIS API for Python
ArcObjects SDK
ArcGIS Pro SDK
Developers - General
ArcGIS REST APIs and Services
ArcGIS Online Developers
File Geodatabase API
Game Engine Maps SDKs
All Developers Communities
Worldwide
Comunidad Esri Colombia - Ecuador - Panamá
ArcGIS 開発者コミュニティ
Czech GIS
ArcNesia
Esri India
GeoDev Germany
ArcGIS Content - Esri Nederland
Esri Italia Community
Comunidad GEOTEC
Esri Ireland
Používatelia ArcGIS
All Worldwide Communities
All Communities
Products
Developers
User Groups
Industries
Services
Community Resources
Worldwide
Events
Learning
ArcGIS Topics
Networks
View All Communities
ArcGIS Ideas
GIS Life
Community Resources
Community Help Documents
Community Blog
Community Feedback
Member Introductions
Community Ideas
All Community Resources
Sign In
cancel
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Showing results for
Show
only
|
Search instead for
Did you mean:
Cancel
Home
:
All Communities
:
Developers
:
ArcGIS Online Developers
:
ArcGIS Online Developers Questions
:
How to get the orgid for an organization without s...
Options
Subscribe to RSS Feed
Mark Topic as New
Mark Topic as Read
Float this Topic for Current User
Bookmark
Subscribe
Mute
Printer Friendly Page
How to get the orgid for an organization without signing in?
Subscribe
6486
4
02-17-2014 08:49 PM
by
WhereMatters
Occasional Contributor
02-17-2014
08:49 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
I know how to get the groupid for an ArcGIS Online Group. There are samples in the JavaScript API resource center, which show you how to get the group id.
But given a url to the organization portal, e.g.,
http://company.maps.arcgis.com
,
how does one find the orgid of this organization without signing in, just to find all public items published by the organization?
Tags
(2)
Tags:
online
web_developers
Reply
1
Kudo
All Posts
Previous Topic
Next Topic
4 Replies
by
WhereMatters
Occasional Contributor
02-17-2014
09:24 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Never mind. I got it.
For private orgs, there is no way you can find the orgid without signing in, which makes perfect sense.
For public orgs, you just hit this url,
http://odot.maps.arcgis.com/sharing/rest/portals/self?culture=en&f=pjson
and it throws out everything about the organization including the orgid.
Try the above url for a private org without signing in, it still throws out some basic info about the org, but does not include the orgid.
Reply
1
Kudo
by
BjornSvensson
Esri Regular Contributor
02-24-2014
08:40 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
I'm not sure that is correct. For example, I don't see a orgId when going directly to
http://odot.maps.arcgis.com/sharing/rest/portals/self?culture=en&f=pjson
.
I think the orgId is either part of the "user" or "appInfo" objects. Both of which are only returned when a token is included in the request.
There is some documentation on this at
http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Portal_Self/02r3000001m7000000/
Reply
0
Kudos
by
WhereMatters
Occasional Contributor
02-24-2014
08:19 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Bjorn,
Did you look at the key "id": "HdNMW2j6UI55aLXm" in the json returned by the request
http://odot.maps.arcgis.com/sharing/rest/portals/self?culture=en&f=pjson
.
Thats the orgid, its just named "id" instead of "orgid"
Reply
0
Kudos
by
BjornSvensson
Esri Regular Contributor
02-25-2014
10:27 AM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
Report Inappropriate Content
Thats the orgid, its just named "id" instead of "orgid"
I missed that. Thanks
🙂
Reply
0
Kudos
Post Reply