GetPortalDescription is used to return the view of the portal as seen by the current user, anonymous or logged in. It includes information such as the name, logo, featured items, and supported protocols (HTTP versus HTTPS) for this portal. If the user is not logged in, this call will return the default view of the portal. If the user is logged in, the view of the returned portal will be specific to the organization to which the user belongs. The default view of the portal is dependent on the culture of the user, which is obtained from the user's profile.
The table below contains a list of the more important portal properties.
Indicates the level of access to your organization for anonymous users. If set to private, only members of the organization will be able to access your site, while public allows public access.
Indicates if the organization is using HTTPS. If true, all calls made against resources that belong to the organization will require HTTPS. The default is false.
The query that identifies the group containing the layers shown in the Analysis Layers gallery for the analysis tools.
Information about the application through which this resource was accessed. This information is based on the token used to access this resource.
An array of trusted servers that clients can send credentials to when making Cross-Origin Resource Sharing (CORS) requests to access web-tier secured services.
A JSON array of allowed redirect URIs which represent portal instances that you share secure content with. This will allow users in your organization to be able to use enterprise logins to access the secured content through web applications hosted on these portals.
The total number of credits of the organization.
The background image that displays behind all other components on the home page. Accept the default background image, specify a URL for a custom background image, or specify that no background image will display.
The query that identifies the group containing the web maps that display in the basemap gallery for Map Viewer.
The Bing key to use for web maps using Bing Maps.
An organization can list applications in the marketplace only if canListApps is true.
An organization can list data services in the marketplace only if canListData is true.
An organization can list preprovisioned items in the marketplace only if canListPreProvisionedItems is true.
An organization can provision direct purchases in the marketplace without customer request only if canProvisionDirectPurchase is true.
Includes or excludes public items, groups, and users in search queries. When canSearchPublic is false, no public items outside of the organization are included in searches. However, public items that are part of the organization are returned. The default is true.
The Bing key can be shared to the public and is returned as part of a portal's description call (/sharing/rest/portals/<orgid>). This requires the access of the portal to be set to public. The canShareBingPublic property is not returned publicly but only shown to users within the organization.
Allows or disallows an organization to share groups or items publicly. When canSharePublic is set to false, it denotes that content cannot be shared with everyone. The default is true.
Allows an organization with an enterprise IDP configured to be able to turn on or off the ArcGIS sign in. The default is true.
Allows an organization with an enterprise IDP configured to be able to turn on or off the enterprise sign in. The default is true.
The query that identifies the group containing the color sets used for rendering in Map Viewer.
Allows the organization to disable commenting. The default is true. When commentsEnabled is false, comments are hidden and not removed. numComments is set to zero for all items in the organization. Calls to add a comment and view comments will fail. If the organization reenables comments, the comments display and numComments is restored.
The query that identifies the group containing the ArcGIS Online content category sets.
Date the organization was created, in UTC, using milliseconds since epoch.
Indicates if the organization has credit budgeting enabled. Default is disabled.
The locale information for the organization (country-language, for example, en-us).
The preferred number and date format according to CLDR (only applicable to English and Spanish, i.e. when culture is en or es).
See Languages for supported formats.
The custom base URL for the portal.
The default basemap displayed in Map Viewer.
The default extent for the organization.
Default allocation of credits for new members.
The default vector basemap displayed in Map Viewer when useVectorBasemaps is true.
The description of the organization.
Indicates of the organization allows ArcGIS Online to collect usage information from its members to improve user experience.
The featured groups for the organization. These are the groups that will be highlighted on the Groups page.
The query that identifies the group containing featured items for the gallery. Set a Group ID or, if null, the most viewed items in your organization are displayed in the gallery.
The query that identifies the group containing gallery templates is allowed to build galleries that showcase the web maps and web mapping applications within a group.
If true, it indicates the organization has content category set up.
The helpBase property provides the base URL of the help documentation. This is used to build all the help URLs within the portal.
A JSON object of various services needed by client applications. They can be overridden by the organization or the portal. The services include the following:
analysis—Hosted geoprocessing services that perform analyses.
asyncClosestFacility—ArcGIS geoprocessing service for asynchronous closest-facility analysis.
asyncLocationAllocation—ArcGIS geoprocessing service for asynchronous location-allocation network analysis.
asyncODCostMatrix—ArcGIS geoprocessing service for generating origin-destination cost matrices asynchronously.
asyncRoute—ArcGIS geoprocessing service for asynchronous route analysis.
asyncServiceArea—ArcGIS geoprocessing service for asynchronous service-area analysis.
asyncVRP—ArcGIS geoprocessing service for solving asynchronous vehicle routing problems.
closestFacility—ArcGIS NAServer service for synchronous closest-facility analysis.
elevation—ArcGIS geoprocessing services for elevation analysis.
defaultElevationLayers—Limited Error Raster Compression (LERC) elevation service used by ArcGIS Pro and the Web Scene Viewer.
elevationSync—ArcGIS geoprocessing services for elevation analysis.
geocode—Array of ArcGIS geocoding services to use for geocoding.
asyncGeocode—ArcGIS geoprocessing service for performing batch geocoding asynchronously. (This helper service was added at ArcGIS Enterprise 10.5.)
geometry—ArcGIS GeometryServer to use for geometry functions.
hydrology—ArcGIS geoprocessing services for hydrologic analysis.
printTask—ArcGIS PrintServer task to use for printing functionality.
route—ArcGIS NAServer service for synchronous route analysis.
routingUtilities—ArcGIS geoprocessing service that provides auxiliary information, such as travel modes, used by the different routing services.
serviceArea—ArcGIS NAServer service for synchronous service-area analysis.
syncVRP—ArcGIS geoprocessing service for solving synchronous vehicle routing problems.
traffic—ArcGIS map service for displaying traffic speeds and traffic incidents.
packaging—ArcGIS geoprocessing service for creating offline use map areas and packages from web maps.
The group that contains featured content to be displayed on the home page.
The number of featured items that can be displayed on the home page. The max is 100. Integers only.
The port used by the portal for HTTP communication.
The port used by the portal for HTTPS communication.
Organization ID. If null, this is the default portal for anonymous and nonorganizational users.
The country code of the calling IP (ArcGIS Online only).
Indicates if the portal is on-premises.
Indicates if the org identity is verified by Esri.
The query that identifies the group containing editing templates used in Map Viewer.
The query that identifies the group containing the layers to be used in the Analysis Layers gallery.
The maximum validity in minutes of tokens issued for users of the organization: -1 is the default and is a special value that indicates infinite timeout or permanent tokens. For tokens granted using OAuth2 authorization grant, it represents the maximum validity of refresh tokens. For access tokens, the maximum validity is the lower of two weeks or this value.
Indicates if the organization has metadata enabled.
Metadata style used for the organization.
Date the organization was last modified, in UTC, milliseconds since epoch.
The organization's name.
The contact email that appears on the Provider tab of the organization's listings in ArcGIS Marketplace.
The contact phone number that appears on the Provider tab of the organization's listings in ArcGIS Marketplace.
The website that appears on the Provider tab of the organization's listings in ArcGIS Marketplace.
The portal host's URL.
Identifies if multitenant or singletenant.
The portal's name.
Stores properties specific to the organization, for example, the contact us link. If the organization is public, the properties are visible to the anonymous user.
The URL to the thumbnail of the portal.
The region for the organization.
Custom HTML for the home page.
If true, the description of your organization displays on the home page.
The query that identifies the group containing a variety of styles that contain references to symbology that can be consumed by the ArcGIS platform.
Indicates if hosted services are supported.
Indicates if OAuth is supported.
The query that identifies the symbol set group for rendering in Map Viewer.
The query that identifies the template group used in Map Viewer.
The URL to the thumbnail of the organization.
Sets the units of measure for the organization's users. The user default is derived from the organization's region. Set units to english for U.S. standards or metric.
Indicates whether organization members are allowed to edit their biographical information and who can see their profiles.
The prefix selected by the organization's administrator to be used with the customBaseURL.
If true, only simple WHERE clauses that are compliant with SQL92 can be used when querying layers and tables. The recommended security setting is true.
If true, organization uses the Esri vector basemaps in supported ArcGIS apps and basemapGalleryGroupQuery will not be editable and will be set to the default query.
The query that identifies the group containing vector basemaps that are used to display in the basemap gallery for Map Viewer. This query should only be used when useVectorBasemaps is true.
An array of up to 100 web application domains to restrict CORS access to the ArcGIS Online REST API.
An array of at least two designated administrators who receive requests to troubleshoot members' multifactor authentication issues.
An array of chosen administrators listed as points of contact whose email addresses will be listed as points of contact in the automatic email notifications sent to org members when they request password resets, help with their user names, modifications to their accounts, or any issues related to the allocation of credits to their accounts.
Indicates if org members are allowed to choose whether to set up multifactor authentication for their individual accounts.
User information for the accessing user is returned only when a token is passed in. Group information is not given. See User for response properties.
The portal URL. If unspecified the active portal will be used.
A dictionary containing portal information
Get a dictionary of a portal's helper services URLs.
import arcpy portal_desc = arcpy.GetPortalDescription() helper_services = portal_desc['helperServices']
Get user privileges from a portal.
import arcpy portal_desc = arcpy.GetPortalDescription() user_name = portal_desc['user']['fullName'] user_privileges = portal_desc['user']['privileges']