The admin REST api is not correctly showing the permissions of a service

377
4
12-16-2021 08:16 AM
DonnyVelazquez
Occasional Contributor

I have a ArcGIS Server 10.7.1 instance with Portal. The private map service does not show in the REST directory page. Telling me that its set to private. But when I use the admin REST api to look at its permissions its telling me its set to Everyone.

return json result

{
    permissions: [{
       principal: "esriEveryone",
       permission: {
       isAllowed: true
    },
   childURL: null,
   operation: null
   }]
}

0 Kudos
4 Replies
jcarlson
MVP Esteemed Contributor

Disabling the REST directory access is different from configuring sharing settings. You can have public layers, but prevent users from going to the REST page and looking at service details.

- Josh Carlson
Kendall County GIS
0 Kudos
DonnyVelazquez
Occasional Contributor

No the directory page is still open and you can see all the public services. I set the sharing settings in portal.

0 Kudos
jcarlson
MVP Esteemed Contributor

Oh! Well, that is strange. Is it a service that's been added from some other server?

- Josh Carlson
Kendall County GIS
0 Kudos
DonnyVelazquez
Occasional Contributor

No, data and service are all on the same server.

0 Kudos