You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to favorite living atlas content (which is not owned by me) using arcgis-rest-sharing's shareItemWithGroup. I can do so with a public account, but not with an organizational account.
The error I get is: {"error":{"code":403,"messageCode":"GWM_0003","message":"You do not have permissions to access this resource or perform this operation.","details":[]}}
With public account (it succeeds), the REST request URL is in this format: https://www.arcgis.com/sharing/rest/content/items/item-id/share
With organizational account (it fails), the URL is like this: https://my-org.maps.arcgis.com/sharing/rest/content/users/owner-of-item/items/item-id/share
The token is passed in both requests. I am able to share my own (and members of my organization's) items.
Not sure why /users is being used in some cases and /items in others; could that be why the organizational request is failing?
I can put in a repro case if needed.
The text was updated successfully, but these errors were encountered:
the error you're reporting is limited to scenarios in which an organizational user with admin privileges attempts to update the group sharing of a public item owned by a user in an entirely different org.
if there is, we could introduce something like outsideOrg: boolean as yet another input parameter, but my instinct is that we're better off just directing org admins to Share item as group admin instead.
I want to favorite living atlas content (which is not owned by me) using
arcgis-rest-sharing
'sshareItemWithGroup
. I can do so with a public account, but not with an organizational account.The error I get is:
{"error":{"code":403,"messageCode":"GWM_0003","message":"You do not have permissions to access this resource or perform this operation.","details":[]}}
I am invoking like this, passing the item owner:
With public account (it succeeds), the REST request URL is in this format:
https://www.arcgis.com/sharing/rest/content/items/item-id/share
With organizational account (it fails), the URL is like this:
https://my-org.maps.arcgis.com/sharing/rest/content/users/owner-of-item/items/item-id/share
The token is passed in both requests. I am able to share my own (and members of my organization's) items.
Not sure why
/users
is being used in some cases and/items
in others; could that be why the organizational request is failing?I can put in a repro case if needed.
The text was updated successfully, but these errors were encountered: