ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS for Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

GetActivePortalURL

  • Summary
  • Discussion
  • Syntax
  • Code sample

Summary

The GetActivePortalURL function returns the URL of the active portal.

Discussion

To add, set or edit portal connections, see Managing portal connections from ArcGIS for Desktop.

Syntax

GetActivePortalURL ()

Return Value

Data TypeExplanation
String

The URL of the active portal.

Code sample

GetPortalInfo example

import arcpy

# For example: 'http://www.arcgis.com/'
arcpy.GetActivePortalURL()

Related topics

  • GetSigninToken
  • ListPortalURLs

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2019 Esri. | Privacy | Legal