Skip to main content
Solved

Read Share Group information from Esri Enterpise

  • January 29, 2025
  • 5 replies
  • 47 views

marta.podsiad
Supporter
Forum|alt.badge.img+9

Hi,

I am having trouble reading the names of the groups with which the layer is shared in Esri Enterprise.

 

I am using an HTTPCaller with the following settings, but the Share info does not appear in the JSON response.

The only information I get is:   "access": "shared".

 

Could you please advise on how to retrieve this information?

Best answer by marta.podsiad

I have found the solution

https://your-portal-url/sharing/rest/community/groups/{groupID}?f=json

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

nielsgerrits
VIP
Forum|alt.badge.img+61

You will need another route for this info:
https://<portalUrl>/portal/sharing/rest/content/users/<userName>/folderId/items/<itemId>

You can find this by logging in to the Community Root:
https://<portalUrl>/portal/sharing/rest/community

The follow Self, User Content, select folder, select item and look for Sharing Groups on the bottom of the page.


marta.podsiad
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • January 30, 2025

Thank you for the reply but I think I am doing sth wrong. My link looks something like that

 

and it does not work. I got and error

 

<b>Error: </b>400<br/><br/>

 


nielsgerrits
VIP
Forum|alt.badge.img+61

I think you forgot to replace the folderId.

You can use the browser to access

https://<portalUrl>/portal/sharing/rest/community

and go from there.


marta.podsiad
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • January 31, 2025

I have used this request 

 

https://maps-eu.xxx.com//portal/sharing/rest/content/users/MPOD@xxx.com/items/@Value(itemId)/sharing?f=pjson

 

and got this info:

 

  "sharing": {
    "access": "shared",
    "groups": [
      "035d3b1262bb4dddfdfd9a0a260e2c4d76e4",
      "ce750fea888a4ddfdfdfddfde6065536adfa31"

 

How can I find the actual name of the group?

 


marta.podsiad
Supporter
Forum|alt.badge.img+9
  • Author
  • Supporter
  • Best Answer
  • February 3, 2025