---
title: "Bulk share resources to users or user groups"
method: PUT
path: "/restapi/json/v1/resources/share"
tags: ["Resources"]
---

# Bulk share resources to users or user groups

`PUT /restapi/json/v1/resources/share`

## Request

- Base URL: `https://Hostname:Port`
- URL: `https://Hostname:Port/restapi/json/v1/resources/share`
- Auth: API key in header `AUTHTOKEN`
- TypeScript: <https://skmtc.dev/manageengine/apis/pam360-rest-api/docs/restapi/json/v1/resources/share/put.ts> (a function with typed inputs; its response is checked against the schema)

Share one or more resources with users or user groups in bulk, assigning access privileges such as `view`, `modify`, or `fullaccess`. Provide `userIds` or `userGroupIds`.

## Headers

- `orgName` string

## Request body `application/x-www-form-urlencoded`

- BulkResourceShareRequest
  - `INPUT_DATA` object: Details of the account sharing request
    - `operation` object
      - `Details` object
        - `resourceIds` string[]: List of resource IDs to share
        - `userGroupIds` string[]: List of user group IDs to share with
        - `accessType` string: Type of access to be granted (e.g., view, edit)

## Response `200`

Resources shared

- BulkShareResourceResponse
  - `operation` object
    - `result` OperationResult
      - `message` string: Result message describing the operation outcome
      - `status` string: Operation status
    - `name` string

---

[API](https://skmtc.dev/manageengine/apis/pam360-rest-api.md) - [All operations](https://skmtc.dev/manageengine/apis/pam360-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/manageengine/apis/pam360-rest-api/revisions/44a47abb4bdb?raw)
