Esri / TilePackageKreator

Tile Package Kreator
Apache License 2.0
28 stars 10 forks source link

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

Open pfoppe opened 7 years ago

pfoppe commented 7 years ago

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 commented 6 years ago

@pfoppe I am working on addressing this in #66

slibby commented 6 years ago

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

pfoppe commented 6 years ago

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 commented 6 years ago

@defiantgoat at https://github.com/Esri/TilePackageKreator/blob/b7531b7aa831983474ab4dd500c46d8f918919e5/Portal/Portal.qml#L570 the app appears to be checking for the ability to create a hosted service. I believe this can be removed - do you agree?

defiantgoat commented 6 years ago

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