Community
All Communities
Products
ArcGIS Pro
ArcGIS Survey123
ArcGIS Online
ArcGIS Enterprise
Data Management
ArcGIS Experience Builder
Geoprocessing
ArcGIS Web AppBuilder
ArcGIS Dashboards
ArcGIS Field Maps
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
Imagery and Remote Sensing Insights (IRIS) COP
All Industries Communities
Developers
Python
JavaScript Maps SDK
Native Maps SDKs
ArcGIS API for Python
ArcGIS Pro SDK
ArcObjects SDK
Developers - General
ArcGIS REST APIs and Services
ArcGIS Online Developers
Game Engine Maps SDKs
File Geodatabase API
All Developers Communities
Global
Comunidad Esri Colombia - Ecuador - Panamá
ArcGIS 開発者コミュニティ
Czech GIS
ArcNesia
Esri India
Comunidad GEOTEC
Europe
GeoDev Germany
Asia Pacific
Americas
ArcGIS Content - Esri Nederland
All Global Communities
All Communities
Developers
User Groups
Industries
Services
Community Resources
Global
Events
Learning
Networks
ArcGIS Topics
Products
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
Select to view content in your preferred language
Translate Now
How to get the orgid for an organization without signing in?
Subscribe
7102
4
02-17-2014 08:49 PM
by
WhereMatters
Frequent Contributor
02-17-2014
08:49 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
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
Frequent Contributor
02-17-2014
09:24 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
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
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
Frequent Contributor
02-24-2014
08:19 PM
Mark as New
Bookmark
Subscribe
Mute
Subscribe to RSS Feed
Permalink
Print
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
Thats the orgid, its just named "id" instead of "orgid"
I missed that. Thanks
🙂
Reply
0
Kudos
Post Reply