Skip to content

List User Workspaces

URL:
https://dataaccess/listUserWorkspaces
Methods:
GET
Operations:
Move
Required Capability:
Access allowed with the "Create and edit notebooks" privilege
Version Introduced:
11.5

Description

The listUserWorkspaces resource provides the name of the workspace directory (/arcgis/home/workspacedirectoryname) for the user initiating the request. If the user accessing the resource is an administrator, this resource will return the workspace directory names for all users.

Request parameters

ParameterDetails

f

The response format. The default response format is html.

Values: html | json | pjson

Example usage

The following is a sample request URL used to access the listUserWorkspaces resource:

Use dark colors for code blocksCopy
1
https://organization.example.com/<context>/notebooks/admin/dataaccess/listUserWorkspaces?f=pjson

JSON Response syntax

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
{
  "Containers": [
    {
      "Name": "<user1workspace>"
    },
    {
      "Name": "<user2workspace>"
    },
    {
      "Name": "<user3workspace>"
    }
  ]
}

JSON Response example

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
{
  "Containers": [
    {
      "Name": "rn_admin"
    },
    {
      "Name": "gis_joe"
    },
    {
      "Name": "gis_jane"
    }
  ]
}

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