Select to view content in your preferred language

Share Content URL to Organization

1026
6
Jump to solution
04-04-2023 06:30 AM
AndrewBowne
Regular Contributor

Is it possible to have a sharable URL for content stored in Enterprise Portal?  For instance, we have a set of PDF files we are housing in our Portal and would like to have a sharable link to them but exposed to our Organization.  If you set permissions to a file as "public" there is a sharable link, but I don't want these documents exposed to the outside world.  I only want them available to users in our organization.

0 Kudos
1 Solution

Accepted Solutions
Richard_Purkis
Esri Contributor

@AndrewBowne 

I understand the issue now.

When sharing publicly, the url is in the format below and opens up automatically:

  • https://<domain>/<web adaptor>/sharing/rest/content/items/<item id>/data

When it is not shared publicly the item is not shared via sharing/ services directory so the same link doesn't work. This is expected. 

The workaround is to provide the item url in the formal below which will prompt the user to sign in and then open the pdf manually.

  • https://<domain>/<web adaptor>/home/item.html?id=<item id>

Hope this helps

View solution in original post

0 Kudos
6 Replies
Richard_Purkis
Esri Contributor

Hi @AndrewBowne 

Rather than setting the sharing setting to Public, would setting it to Organization resolve your issue? This way only users with Portal accounts can access the PDF

Hope this helps

0 Kudos
AndrewBowne
Regular Contributor

Yes, it would and that's exactly what I am looking to accomplish however when you set the permissions to Organization, The link is no longer available.

 

Shared Publicly:

AndrewBowne_0-1680616734378.png

 

 

Shared to Org:

AndrewBowne_1-1680616760299.png

 

0 Kudos
Richard_Purkis
Esri Contributor

@AndrewBowne 

I understand the issue now.

When sharing publicly, the url is in the format below and opens up automatically:

  • https://<domain>/<web adaptor>/sharing/rest/content/items/<item id>/data

When it is not shared publicly the item is not shared via sharing/ services directory so the same link doesn't work. This is expected. 

The workaround is to provide the item url in the formal below which will prompt the user to sign in and then open the pdf manually.

  • https://<domain>/<web adaptor>/home/item.html?id=<item id>

Hope this helps

0 Kudos
AndrewBowne
Regular Contributor

How about when sharing out an image (.jpg)?  If I point to the URL format as you suggest, it doesn't open the image.   Instead, I just get to the Portal content page.

 

0 Kudos
Richard_Purkis
Esri Contributor

@AndrewBowne Exactly the same thing for images, you will have to share the item ID url and not the services directory url.

Hope this helps

0 Kudos
AndrewBowne
Regular Contributor

Got it, Thanks.  I was hoping to be able to open either a PDF or a JPG automatically as long as a user is authenticated.  If they aren't, they would then be prompted to log in.  Sounds like this is not possible unless the user manually clicks on the link to open the file.

0 Kudos