> ## 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-doxygen">
  <div id="a7645484bba3b9b9cf2d0549fa9ea4a5e" />

  <h2 className="memtitle"><span className="permalink"><a href="#a7645484bba3b9b9cf2d0549fa9ea4a5e">◆ </a></span>grantPermissionTable() <span className="overload">\[1/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionTableResponse">GrantPermissionTableResponse</a> gpudb::GPUdb::grantPermissionTable </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionTableRequest">GrantPermissionTableRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span></td>
          <td>)</td>
          <td> const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>\[DEPRECATED–please use <a className="el" href="#a9634c497d7035ee98062b6f92a63be8d">grantPermission</a> instead] Grants a table-level permission to a user or role. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionTableRequest">Request</a> object containing the parameters for the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionTableResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a6ac61f85670e122b14f4bdc6de033563" />

  <h2 className="memtitle"><span className="permalink"><a href="#a6ac61f85670e122b14f4bdc6de033563">◆ </a></span>grantPermissionTable() <span className="overload">\[2/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionTableResponse">GrantPermissionTableResponse</a> & gpudb::GPUdb::grantPermissionTable </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionTableRequest">GrantPermissionTableRequest</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">request\_</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionTableResponse">GrantPermissionTableResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>\[DEPRECATED–please use <a className="el" href="#a9634c497d7035ee98062b6f92a63be8d">grantPermission</a> instead] Grants a table-level permission to a user or role. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">request\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionTableRequest">Request</a> object containing the parameters for the operation. </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionTableResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionTableResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>

  <div id="a316e6277ca48b863d066a315e6e19f01" />

  <h2 className="memtitle"><span className="permalink"><a href="#a316e6277ca48b863d066a315e6e19f01">◆ </a></span>grantPermissionTable() <span className="overload">\[3/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionTableResponse">GrantPermissionTableResponse</a> gpudb::GPUdb::grantPermissionTable </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">name</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">permission</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">tableName</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">filterExpression</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>\[DEPRECATED–please use <a className="el" href="#ad2439e67beadacbe234814ad9c4e4691">grantPermission</a> instead] Grants a table-level permission to a user or role. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">name</td>
              <td>Name of the user or role to which the permission will be granted. Must be an existing user or role. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">permission</td>

              <td>
                Permission to grant to the user or role. Supported values:

                <ul>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a143306a2b55e28fbb97cdb7a15819ddf">grant\_permission\_table\_table\_admin</a>: Full read/write and administrative access to the table. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3c5bc1409091cf8a64bb9ccc20dda443">grant\_permission\_table\_table\_insert</a>: Insert access to the table. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#aef289a043bbd7e5fa4532820b81a5065">grant\_permission\_table\_table\_update</a>: Update access to the table. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3abb5fcb6767f9871db6f6bdb63e2df8">grant\_permission\_table\_table\_delete</a>: Delete access to the table. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a2f8fad1eccd565474e553085c4bd57a9">grant\_permission\_table\_table\_read</a>: Read access to the table. </li>
                </ul>
              </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">tableName</td>
              <td>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. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">filterExpression</td>
              <td>Optional filter expression to apply to this grant. Only rows that match the filter will be affected. The default value is ''. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#abbac109214b76a5d44567061bd4a920f">grant\_permission\_table\_columns</a>: Apply security to these columns, comma-separated. The default value is ''. </li>
                </ul>

                The default value is an empty map.
              </td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionTableResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="ab41217b1f8c629a915e0df1913e3257d" />

  <h2 className="memtitle"><span className="permalink"><a href="#ab41217b1f8c629a915e0df1913e3257d">◆ </a></span>grantPermissionTable() <span className="overload">\[4/4]</span></h2>

  <div className="memitem">
    <div className="memproto">
      <table className="memname">
        <tr>
          <td className="memname"><a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionTableResponse">GrantPermissionTableResponse</a> & gpudb::GPUdb::grantPermissionTable </td>
          <td>(</td>
          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">name</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">permission</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">tableName</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::string &</td>
          <td className="paramname"><span className="paramname"><span className="em">filterExpression</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype">const std::map\< std::string, std::string > &</td>
          <td className="paramname"><span className="paramname"><span className="em">options</span></span>, </td>
        </tr>

        <tr>
          <td className="paramkey" />

          <td />

          <td className="paramtype"><a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionTableResponse">GrantPermissionTableResponse</a> &</td>
          <td className="paramname"><span className="paramname"><span className="em">response\_</span></span> ) const</td>
        </tr>
      </table>
    </div>

    <div className="memdoc">
      <p>\[DEPRECATED–please use <a className="el" href="#ad2439e67beadacbe234814ad9c4e4691">grantPermission</a> instead] Grants a table-level permission to a user or role. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">name</td>
              <td>Name of the user or role to which the permission will be granted. Must be an existing user or role. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">permission</td>

              <td>
                Permission to grant to the user or role. Supported values:

                <ul>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a143306a2b55e28fbb97cdb7a15819ddf">grant\_permission\_table\_table\_admin</a>: Full read/write and administrative access to the table. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3c5bc1409091cf8a64bb9ccc20dda443">grant\_permission\_table\_table\_insert</a>: Insert access to the table. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#aef289a043bbd7e5fa4532820b81a5065">grant\_permission\_table\_table\_update</a>: Update access to the table. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3abb5fcb6767f9871db6f6bdb63e2df8">grant\_permission\_table\_table\_delete</a>: Delete access to the table. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a2f8fad1eccd565474e553085c4bd57a9">grant\_permission\_table\_table\_read</a>: Read access to the table. </li>
                </ul>
              </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">tableName</td>
              <td>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. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">filterExpression</td>
              <td>Optional filter expression to apply to this grant. Only rows that match the filter will be affected. The default value is ''. </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">options</td>

              <td>
                Optional parameters.

                <ul>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#abbac109214b76a5d44567061bd4a920f">grant\_permission\_table\_columns</a>: Apply security to these columns, comma-separated. The default value is ''. </li>
                </ul>

                The default value is an empty map.
              </td>
            </tr>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionTableResponse">Response</a> object containing the results of the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd"><a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionTableResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>
</div>
