GetPortalDescription
Summary
Returns a dictionary of portal information.
The GetPortalDescription function returns the view of the portal as seen by the current user, anonymous or signed in. It includes information such as the name, logo, featured items, and supported protocols (HTTP versus HTTPS) for the portal. If the user is not signed in, this call will return the default view of the portal. If the user is signed 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.
Discussion
The table below contains a list of the more important portal properties.
|
Property |
Details |
|---|---|
|
|
Determines who can view your organization as an anonymous user. Setting to Values: |
|
|
An array of beta features that are enabled for the organization. |
|
|
An array of up to 100 web app domains to restrict cross-origin resource sharing (CORS) access to the REST API. This property is only available to administrators. |
|
|
A JSON array of allowed redirect URIs that represent portal instances with which you share secure content. This allows users in your organization to use organization logins to access the secured content through web apps hosted on these portals. |
|
|
Indicates whether the organization is using HTTPS. If set to Values: |
|
|
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 the resource was accessed. This information is based on the token used to access the resource. |
|
|
An array of trusted servers that clients can send credentials to when making CORS requests to access web-tier secured services. |
|
|
Introduced at ArcGIS Enterprise 11.0. An array of trusted servers that JavaScript clients will initially send direct requests to handle authentication prior to making a (CORS) request. All trusted servers must already be listed in the |
|
|
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 be used. |
|
|
The query that identifies the group containing the web maps that display in the Map Viewer basemap gallery. |
|
|
The Bing key to use for web maps using Bing Maps. |
|
|
An organization can list applications in the marketplace only if Values: |
|
|
An organization can list data services in the marketplace only if Values: |
|
|
An organization can list preprovisioned items in the marketplace only if Values: |
|
|
An organization can provision direct purchases in the marketplace without a customer request only if Values: |
|
|
Includes or excludes public items, groups, and users in search queries. When Values: |
|
|
The Bing key can be shared to the public and is returned as part of a portal's description call ( |
|
|
Indicates whether an organization can share groups or items publicly. When Values: |
|
|
Allows an organization with a configured enterprise IDP to turn on or off the ArcGIS sign in option. The default is Values: |
|
|
Allows an organization with a configured enterprise IDP to turn on or off the enterprise sign in. The default is Values: |
|
|
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 Values: |
|
|
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 organization members when they request password resets, help with their usernames, modifications to their accounts, or any issues related to the allocation of credits to their accounts. |
|
|
The query that identifies the group containing the ArcGIS Online content category sets. |
|
|
The date the organization was created, in UTC, using milliseconds since epoch. |
|
|
Indicates whether the organization has credit budgeting enabled. The default is Values: |
|
|
The default locale (language and country) information. The format for the culture code is based on a language code and a country code separated by a dash:
|
|
|
The preferred number and date format according to CLDR. The See Languages for supported formats. |
|
|
The custom base URL for the portal. |
|
|
The default basemap displayed in Map Viewer. |
|
|
The default basemap displayed in Map Viewer for developer subscriptions. |
|
|
The default extent of the organization, used when users create a web map. |
|
|
The default allocation of credits for new members. The value is |
|
|
The default vector basemap displayed in Map Viewer when |
|
|
The description of the organization. The description can be any length. |
|
|
The query that identifies the group containing the web maps that display in the Map Viewer basemap gallery for developer subscriptions. |
|
|
Indicates whether the organization allows ArcGIS Online to collect usage information from its members to improve the user experience. |
|
|
The featured groups for the organization. These are the groups that are highlighted on the Groups page in the portal home app. |
|
|
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 whether the group containing gallery templates is allowed to build galleries that showcase the web maps and web mapping apps within a group. |
|
|
Indicates whether the organization has a content category set up. |
|
|
Provides the base URL for your organization's help documentation, which builds all the help URLs in the portal. Starting at ArcGIS Enterprise 10.8.1, Note:The documentation source only has an impact on documentation accessed through the Enterprise portal home app and does not impact ArcGIS Server or the ArcGIS REST API documentation. |
|
|
A JSON object of various services needed by client applications. The helper services can be overridden by the organization or the portal. The services include the following:
|
|
|
The group that contains featured content to be displayed on the organization home page. |
|
|
The number of featured items that can be displayed on the home page. The maximum is 100. Only integers can be used. |
|
|
The port used by the portal for HTTP communication. |
|
|
The port used by the portal for HTTPS communication. |
|
|
The 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 whether the portal is on-premises. |
|
|
Indicates whether the organization 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 both OAuth and non-OAuth tokens issued for users of the organization. The default value is |
|
|
Indicates if the organization has metadata enabled. If Values: |
|
|
The metadata style used for the organization. The default is Values: |
|
|
An array of at least two designated administrators who receive requests to troubleshoot members' multifactor authentication issues. |
|
|
Indicates whether organization members are allowed to set up multifactor authentication for their individual accounts. |
|
|
The date the organization was last modified, in UTC, milliseconds since epoch. |
|
|
The name of the organization or portal. The character limit is 250. |
|
|
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 URL that appears on the Provider tab of the organization's listings in ArcGIS Marketplace. |
|
|
The portal host's URL. |
|
|
Identifies whether it is |
|
|
The portal's name. |
|
|
Stores properties specific to the organization (for example, the Contact Us link, Home Page, Map Viewer and Search configuration). If the organization is public, the properties are visible to anonymous user. |
|
|
The URL of the thumbnail of the portal. |
|
|
The region for the organization. |
|
|
The custom HTML for the home page. |
|
|
If Values: |
|
|
The total storage allowed in bytes. Starting at ArcGIS Enterprise 10.8, the organization storage quota increased to 10 TB. Prior to ArcGIS Enterprise 10.8, organization storage was at 2 TB. Nonorganization storage is 2 GB. |
|
|
The total storage used in bytes. |
|
|
The query that identifies the group containing a variety of styles that contain references to symbology that can be used in the organization. |
|
|
Indicates whether hosted services are supported. |
|
|
Indicates whether 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 of 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 Values: |
|
|
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 |
|
|
User information for the accessing user is returned only when a token is passed in. Group information is not provided. See User for response properties. |
|
|
If Values: |
|
|
If Values: |
|
|
The query that identifies the group containing vector basemaps that are used to display in the Map Viewer basemap gallery. Use this query only when |
|
Property |
Details |
|---|---|
|
|
Returns subscription information about the current portal by ID, for authentication of organizational extensions. |
Syntax
GetPortalDescription({portal_URL})
| Parameter | Explanation | Data Type |
|---|---|---|
|
portal_URL |
The portal URL. If unspecified, the active portal will be used. |
String |
Return value
| Data Type | Explanation |
|---|---|
|
Dictionary |
A dictionary containing portal information. |
Code sample
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']