question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to favorite any Living Atlas item as an organization administrator using shareItemWithGroup

See original GitHub issue

Issue description

I, as an org admin, am unable to favorite a Living Atlas item (Owned by a user outside of my organization) to my favorite’s group.

Context

Since https://github.com/Esri/arcgis-rest-js/commit/e8ab1bc3ad4498e5c1ac19fc0f1c24013de0a8df, the shareItemWithGroup now handles a different API route to share an item to a group if the sharing was performed by an org_admin. This route uses the /content/users/:ownername/items/:itemid/share which when favoriting a Living Atlas item, does not have the right permissions to add to favorite group since the item and the user don’t belong to the same organization as the org admin and therefore no item control.

Steps to reproduce

  1. Use the following inputs to run the shareItemWithGroup function: A. id: bf7c462f912f4d41ba262ba3c0e9008f B. groupId: “Org admin favorite group ID” C. owner: “cfrye_UO” D. authentication: Org admin user session

Seen behavior

I get an error that I do not have permissions to favorite the item.

Expected behavior

I would expect that an admin is able to favorite a Living Atlas item just like any other member of the organization.

Version

Browser: Chrome, Firefox, Safari (all OS) ArcGIS-Rest-Js: v3.2.0

Use case

The ArcGIS StoryMaps app offers several item browser views in its ecosystem. There’s a browser to explore and search for Living Atlas web maps, scenes, storymaps, apps and files. This browser view can be accessed by both an admin and any non-admin user. Screen Shot 2021-07-28 at 12 15 59 PM

We’re running into this issue specifically for the org_admin use case.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
dbouwmancommented, Aug 19, 2022

@tonybattsesri - We have confirmed that there is an issue that’s connected to situations involving sharing an item to a group across org’s, which is further compounded with org_admin users.

We are investigating how resolve this “correctly” without breaking other needed behaviors.

1reaction
patrickarltcommented, Sep 14, 2021

@dbouwman @tomwayson can you take a look?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure ArcGIS Living Atlas content—Portal for ArcGIS
This content appears on the Living Atlas tab of the Content page and is available to organization members in Map Viewer, Map Viewer...
Read more >
Group members are unable to share items with ... - Esri Support
On the ArcGIS Online organization's top ribbon, click Groups > My Groups. On the My Groups tab, click the group.
Read more >
Find and work with content—Portal for ArcGIS
Click Content at the top of the website to browse items using the My Content, My Favorites, My Groups, My Organization, and Living...
Read more >
Living Atlas in ArcGIS Enterprise - YouTube
Living Atlas of the World content is available for ArcGIS Enterprise customers starting with the 10.5 release. This session will show how to ......
Read more >
The Living Atlas - GIS for the Planet. Authoritative, open ...
The Living Atlas of the World is made available by Esri, with content ... about the Atlas and some of my favorite suggested...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found