Select to view content in your preferred language

Allow passing in client id parameter to the arcpy.management.SharePackage tool to authenticate to a portal that uses OAUTH2.

854
1
03-28-2021 11:50 PM
Status: Open
Labels (1)
AndresCastillo
MVP Regular Contributor

As per:

https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/share-package.htm

 

This capability is not available as of ArcGIS Pro 2.7

This would be nice to have for custom scripts  outside of ArcGIS apps that create some type of package, then want to share it to an OAUTH2 portal, such as ArcGIS Online

1 Comment
KoryKramer

Hi @AndresCastillo 

If you have saved your credentials in Pro using “Sign me in automatically”, does it make it so standalone Python can act against the same portal?

KoryKramer_0-1617136538278.png

This was tested on our side - signed into Pro, click that box to save credentials for the active portal, AGOL. Closed Pro. Opened Python. Ran Share Package. It works.

Can you try that and let us know what you find?

Thanks