---
title: "Share resource groups to users or user groups"
method: PUT
path: "/restapi/json/v1/resourcegroup/share"
tags: ["Resource Groups"]
---

# Share resource groups to users or user groups

`PUT /restapi/json/v1/resourcegroup/share`

## Request

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

Shares one or more resource groups with users or user groups, assigning access privileges such as `view`, `modify`, or `fullaccess`. Provide `userIds` or `userGroupIds`.

## Headers

- `orgName` string

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

- BulkResourceGroupShareRequest
  - `INPUT_DATA` object: Details of the bulk resource group sharing request
    - `operation` object
      - `Details` object
        - `resourceGroupIds` string[]: List of resource group IDs to share
        - `userIds` string[]: List of user IDs to share with. Use this or userGroupIds or both.
        - `userGroupIds` string[]: List of user group IDs to share with. Use this or userIds or both.
        - `accessType` 'view' | 'modify' | 'fullaccess' | 'revoke': Permission level to grant

## Response `200`

Resource groups shared

- BulkResourceGroupShareResponse
  - `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)
