> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# grant_role

### grant\_role

<ul>
  <li>
    grant\_role(\
    &#x20;role: string,\
    &#x20;member: string,\
    &#x20;options?: Record\<string, string>,\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/typescript/types/GPUdbCallback.md),\
    ): Promise\<[GrantRoleResponse](https://docs.kinetica.com/content/api/typescript/interfaces/GrantRoleResponse.md)>

    Grants membership in a role to a user or role.

    #### Parameters

    <ul>
      <li>
        role: string

        Name of the role in which membership will be granted. Must be an existing role.
      </li>

      <li>
        member: string

        Name of the user or role that will be granted membership in `role`. Must be an existing user or role.
      </li>

      <li>
        `Optional`options: Record\<string, string>

        Optional parameters.
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/typescript/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[GrantRoleResponse](https://docs.kinetica.com/content/api/typescript/interfaces/GrantRoleResponse.md)>

    Promise\<Types.GrantRoleResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:11171](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L11171)</li>
    </ul>
  </li>
</ul>

### grant\_role\_request

<ul>
  <li>
    grant\_role\_request(\
    &#x20;request: [GrantRoleRequest](https://docs.kinetica.com/content/api/typescript/interfaces/GrantRoleRequest.md),\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/typescript/types/GPUdbCallback.md),\
    ): Promise\<[GrantRoleResponse](https://docs.kinetica.com/content/api/typescript/interfaces/GrantRoleResponse.md)>

    Grants membership in a role to a user or role.

    #### Parameters

    <ul>
      <li>
        request: [GrantRoleRequest](https://docs.kinetica.com/content/api/typescript/interfaces/GrantRoleRequest.md)

        Request object containing the parameters for the operation
      </li>

      <li>
        `Optional`callback: [GPUdbCallback](https://docs.kinetica.com/content/api/typescript/types/GPUdbCallback.md)

        Optional callback function
      </li>
    </ul>

    #### Returns Promise\<[GrantRoleResponse](https://docs.kinetica.com/content/api/typescript/interfaces/GrantRoleResponse.md)>

    Promise\<Types.GrantRoleResponse> - Promise resolving to the response

    <ul>
      <li>Defined in [src/GPUdb.ts:11146](https://github.com/kineticadb/kinetica-api-typescript/blob/master/src/GPUdb.ts#L11146)</li>
    </ul>
  </li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.