Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why does a user need publish hosted feature layers permissions #59

Open
pfoppe opened this issue Aug 28, 2017 · 5 comments
Open

Why does a user need publish hosted feature layers permissions #59

pfoppe opened this issue Aug 28, 2017 · 5 comments

Comments

@pfoppe
Copy link

pfoppe commented Aug 28, 2017

The Application throws the following error when a user does not have the "Publish Hosted Feature Layers" capability:

Insufficient Client Privileges
Need minimum privileges of Create content, Publish hosted feature layers and Share with groups in your Role. Please contact your ArcGIS Administrator to resolve this issue.

but it does not seem that this application created hosted feature layers. It only allows for the .tpk file to be uploaded to a users content (as an item, not as a hosted service). Are these permissions really required? Can the app be modified to not require these permissions since hosted layers are not actually being created?

Thanks for the consideration.

@slibby
Copy link
Member

slibby commented Mar 8, 2018

@pfoppe I am working on addressing this in #66

defiantgoat pushed a commit that referenced this issue Mar 26, 2018
@slibby
Copy link
Member

slibby commented Sep 6, 2018

Addressed in the latest release. Please verify and close @pfoppe if you no longer have the issue.

@pfoppe
Copy link
Author

pfoppe commented Sep 7, 2018

Hi @slibby ,

Thanks for engaging this issue. I downgraded my AGOL "SAML account" (enterprise logins) to a custom "contributor" role that has the following privileges:

"features:user:edit",
"portal:user:createItem",
"portal:user:joinGroup",
"portal:user:joinNonOrgGroup",
"portal:user:shareToGroup",
"portal:user:viewOrgGroups",
"portal:user:viewOrgItems",
"portal:user:viewOrgUsers",
"premium:user:demographics",
"premium:user:elevation",
"premium:user:geocode",
"premium:user:geoenrichment",
"premium:user:networkanalysis",
"premium:user:spatialanalysis"

and tested the latest downloadable version (v1.3.30), however it throws the same error message:
image

I think my account has 2 of the 3 required privs ("create content" via portal:user:createItem and "share with groups" via portal:user:shareToGroup) but does not have the Publish Hosted feature layer privilege.

What is the 'latest version'? Thoughts? Thanks.

@slibby
Copy link
Member

slibby commented Sep 10, 2018

@defiantgoat at

if (privileges[i] === "portal:publisher:publishFeatures") {
the app appears to be checking for the ability to create a hosted service. I believe this can be removed - do you agree?

@defiantgoat
Copy link
Contributor

@slibby Yes. Many of those can be removed actually I think.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants