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

# grantPermissionTable

<div className="kinetica-javadoc">
  <ul className="member-list">
    <li>
      <div className="section detail" id="grantPermissionTable(com.gpudb.protocol.GrantPermissionTableRequest)">
        <h3>grantPermissionTable</h3>
        <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/GrantPermissionTableResponse" title="class in com.gpudb.protocol">GrantPermissionTableResponse</a></span> <span className="element-name">grantPermissionTable</span><wbr /><span className="parameters">(<a href="/content/api/java/com/gpudb/protocol/GrantPermissionTableRequest" title="class in com.gpudb.protocol">GrantPermissionTableRequest</a> request)</span> throws <span className="exceptions"><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></span></div>
        <div className="block">\[DEPRECATED--please use <a href="#grantPermission(com.gpudb.protocol.GrantPermissionRequest)"><code>grantPermission</code></a> instead] Grants a table-level permission to a user or role.</div>

        <div className="dl notes">
          <div className="dt">Parameters:</div>
          <div className="dd"><code>request</code> - <a href="/content/api/java/com/gpudb/protocol/GrantPermissionTableRequest" title="class in com.gpudb.protocol"><code>Request</code></a> object containing the parameters for the operation.</div>
          <div className="dt">Returns:</div>
          <div className="dd"><a href="/content/api/java/com/gpudb/protocol/GrantPermissionTableResponse" title="class in com.gpudb.protocol"><code>Response</code></a> object containing the results of the operation.</div>
          <div className="dt">Throws:</div>
          <div className="dd"><code><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></code> - if an error occurs during the operation.</div>
        </div>
      </div>
    </li>

    <li>
      <div className="section detail" id="grantPermissionTable(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Map)">
        <h3>grantPermissionTable</h3>
        <div className="member-signature"><span className="modifiers">public</span> <span className="return-type"><a href="/content/api/java/com/gpudb/protocol/GrantPermissionTableResponse" title="class in com.gpudb.protocol">GrantPermissionTableResponse</a></span> <span className="element-name">grantPermissionTable</span><wbr /><span className="parameters">(<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a> name, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a> permission, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a> tableName, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a> filterExpression, <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" className="external-link">Map</a>\<<a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a>,<wbr /><a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/lang/String.html" title="class or interface in java.lang" className="external-link">String</a>> options)</span> throws <span className="exceptions"><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></span></div>
        <div className="block">\[DEPRECATED--please use <a href="#grantPermission(java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.util.Map)"><code>grantPermission</code></a> instead] Grants a table-level permission to a user or role.</div>

        <div className="dl notes">
          <div className="dt">Parameters:</div>
          <div className="dd"><code>name</code> - Name of the user or role to which the permission will be granted. Must be an existing user or role.</div>

          <div className="dd">
            <code>permission</code> - Permission to grant to the user or role. Supported values:

            <ul>
              <li><a href="/content/api/java/com/gpudb/protocol/GrantPermissionTableRequest.Permission#TABLE_ADMIN"><code>TABLE\_ADMIN</code></a>: Full read/write and administrative access to the table. </li>
              <li><a href="/content/api/java/com/gpudb/protocol/GrantPermissionTableRequest.Permission#TABLE_INSERT"><code>TABLE\_INSERT</code></a>: Insert access to the table. </li>
              <li><a href="/content/api/java/com/gpudb/protocol/GrantPermissionTableRequest.Permission#TABLE_UPDATE"><code>TABLE\_UPDATE</code></a>: Update access to the table. </li>
              <li><a href="/content/api/java/com/gpudb/protocol/GrantPermissionTableRequest.Permission#TABLE_DELETE"><code>TABLE\_DELETE</code></a>: Delete access to the table. </li>
              <li><a href="/content/api/java/com/gpudb/protocol/GrantPermissionTableRequest.Permission#TABLE_READ"><code>TABLE\_READ</code></a>: Read access to the table. </li>
            </ul>
          </div>

          <div className="dd"><code>tableName</code> - Name of the table to which the permission grants access, in \[schema\_name.]table\_name format, using standard <a href="/content/concepts/tables/#table-name-resolution" target="_top">name resolution rules</a>. Must be an existing table, view, or schema. If a schema, the permission also applies to tables and views in the schema.</div>
          <div className="dd"><code>filterExpression</code> - Optional filter expression to apply to this grant. Only rows that match the filter will be affected. The default value is ''.</div>

          <div className="dd">
            <code>options</code> - Optional parameters.

            <ul>
              <li><a href="/content/api/java/com/gpudb/protocol/GrantPermissionTableRequest.Options#COLUMNS"><code>COLUMNS</code></a>: Apply security to these columns, comma-separated. The default value is ''. </li>
            </ul>

            The default value is an empty <a href="https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/util/Map.html" title="class or interface in java.util" className="external-link"><code>Map</code></a>.
          </div>

          <div className="dt">Returns:</div>
          <div className="dd"><a href="/content/api/java/com/gpudb/protocol/GrantPermissionTableResponse" title="class in com.gpudb.protocol"><code>Response</code></a> object containing the results of the operation.</div>
          <div className="dt">Throws:</div>
          <div className="dd"><code><a href="/content/api/java/com/gpudb/GPUdbException" title="class in com.gpudb">GPUdbException</a></code> - if an error occurs during the operation.</div>
        </div>
      </div>
    </li>
  </ul>
</div>
