> ## 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.

# has_permission

### has\_permission

<ul>
  <li>
    has\_permission(\
    &#x20;principal: string | undefined,\
    &#x20;object: string,\
    &#x20;object\_type: string,\
    &#x20;permission: string,\
    &#x20;options?: Record\<string, string>,\
    &#x20;callback?: [GPUdbCallback](https://docs.kinetica.com/content/api/typescript/types/GPUdbCallback.md),\
    ): Promise\<[HasPermissionResponse](https://docs.kinetica.com/content/api/typescript/interfaces/HasPermissionResponse.md)>

    Checks if the specified user has the specified permission on the specified object.

    #### Parameters

    <ul>
      <li>
        principal: string | undefined

        Name of the user for which the permission is being checked. Must be an existing user. If blank, will use the current user.
      </li>

      <li>
        object: string

        Name of object to check for the requested permission. It is recommended to use a fully-qualified name when possible.
      </li>

      <li>
        object\_type: string

        The type of object being checked.
      </li>

      <li>
        permission: string

        Permission to check for.
      </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\<[HasPermissionResponse](https://docs.kinetica.com/content/api/typescript/interfaces/HasPermissionResponse.md)>

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

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

### has\_permission\_request

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

    Checks if the specified user has the specified permission on the specified object.

    #### Parameters

    <ul>
      <li>
        request: [HasPermissionRequest](https://docs.kinetica.com/content/api/typescript/interfaces/HasPermissionRequest.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\<[HasPermissionResponse](https://docs.kinetica.com/content/api/typescript/interfaces/HasPermissionResponse.md)>

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

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


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