Manage sharing and security

The Share setting for a (item) allows you to manage the sharing level of the and the corresponding . Restricting the sharing level is how you secure both the item in a portal and the underlying data in the data service.

You can use the share setting to:

  • Change the discoverability of a (item) in a portal.
  • Make an and a private or public.
  • Give specific groups of users or an organization access to an and a .
  • Require data services to be accessed with an .
Item page sharing
Hosted vector tile layer item page in ArcGIS portal showing sharing settings.

How to set the sharing level

When you create a new data service, the hosted layer (item) and data service sharing level (privacy setting) is set to Owner. The item and data service are only available to you. This setting requires that applications provide a valid to authenticate requests to view the item or access the data service.

The steps to change the sharing properties are:

  1. Sign in to your :

  2. Find the item.
  3. Use the item page to change the sharing setting.

Types of sharing levels

The following is a list of the sharing levels available for the different types of ArcGIS products:

  • Owner (private): Only the owner has access. The hosted layer (item) and data service are private and will not be visible or accessible to others. A valid access token or scoped API key is required. Learn more about scoping items to an API key in API keys.

Code examples

You can use data management tools to set the sharing level of a or you can use the ArcGIS REST APIs. The following examples illustrate how to programmatically set the sharing level a .

Set sharing to private

Restrict the hosted layer (item) and data service access to the owner only. An is required to access the service.

1
2
3
4
5
6
7
POST https://{host}/sharing/rest/content/users/{organizationId}/items/{itemId}/share HTTP/1.1
Content-Type: application/x-www-form-urlencoded

everyone=false
&org=false
&groups=
&token={access_token}

Set sharing to group

Restrict the hosted layer (item) and data service access to private or public groups in the organization. An is required to access the service.

This sharing level is not available.

Set sharing to organization

Restrict the hosted layer (item) and data service access to members of the organization. An is required to access the service.

This sharing level is not available.

Set sharing to public

Allow unrestricted access to the hosted layer (item) and data service. An is not required to access the service.

This sharing level is not available.

Tutorials

Import data to create a feature layer

Use data management tools to import files and create a feature layer in a feature service.


Define a new feature layer

Use data management tools to define and create a new empty feature layer in a feature service.


Manage a feature layer

Use a hosted feature layer item to set the properties and settings of a feature layer in a feature service.


Create a vector tile service

Use data management tools to create a new vector tile service from a feature service.


Create a map tile service

Use ArcGIS Online or scripting APIs to publish a map tile service.


Workflows

Services

API support

Use or to create, manage, and access . The table below outlines the level of support for each API.

CreateManageAccess
ArcGIS Maps SDK for JavaScript1
ArcGIS Maps SDK for Kotlin1
ArcGIS Maps SDK for Swift1
ArcGIS Maps SDK for Flutter1
ArcGIS Maps SDK for Java1
ArcGIS Maps SDK for .NET1
ArcGIS Maps SDK for Qt1
ArcGIS API for Python
ArcGIS REST JS
Esri Leaflet2
MapLibre GL JS23
OpenLayers23
Full supportPartial supportNo support
  • 1. Use portal class and direct REST API requests
  • 2. Access via ArcGIS REST JS
  • 3. Requires manually setting styles for renderers

Tools

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.

You can no longer sign into this site. Go to your ArcGIS portal or the ArcGIS Location Platform dashboard to perform management tasks.

Your ArcGIS portal

Create, manage, and access API keys and OAuth 2.0 developer credentials, hosted layers, and data services.

Your ArcGIS Location Platform dashboard

Manage billing, monitor service usage, and access additional resources.

Learn more about these changes in the What's new in Esri Developers June 2024 blog post.

Close