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

# gpudb::GrantPermissionDatasourceRequest

> gpudb::GrantPermissionDatasourceRequest — Kinetica C++ API

<div className="kinetica-doxygen">
  <div className="contents">
    <p>A set of parameters for <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#a5ea6ea4a2af4895f3acf2131ffe36c56">GPUdb::grantPermissionDatasource</a>. <a href="#details">More...</a></p>
    <p><code>#include \<<a className="el" href="/content/api/cpp/grant__permission__datasource_8h_source">gpudb/protocol/grant\_permission\_datasource.h</a>></code></p>

    <table className="memberdecls">
      <tr className="heading">
        <td colSpan="2">
          <h2 className="groupheader"> Public Member Functions</h2>
        </td>
      </tr>

      <tr className="memitem:acd91171ec96862272e0f224311ae8452" id="r_acd91171ec96862272e0f224311ae8452">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#acd91171ec96862272e0f224311ae8452">GrantPermissionDatasourceRequest</a> ()</td>
      </tr>

      <tr className="memdesc:acd91171ec96862272e0f224311ae8452">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionDatasourceRequest" title="A set of parameters for GPUdb::grantPermissionDatasource.">GrantPermissionDatasourceRequest</a> object with default parameters. <br /></td>
      </tr>

      <tr className="separator:acd91171ec96862272e0f224311ae8452">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a663f754dbe5eca909dbb972b4b96613c" id="r_a663f754dbe5eca909dbb972b4b96613c">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a663f754dbe5eca909dbb972b4b96613c">GrantPermissionDatasourceRequest</a> (const std::string \&name\_, const std::string \&permission\_, const std::string \&datasourceName\_, const std::map\< std::string, std::string > \&options\_)</td>
      </tr>

      <tr className="memdesc:a663f754dbe5eca909dbb972b4b96613c">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionDatasourceRequest" title="A set of parameters for GPUdb::grantPermissionDatasource.">GrantPermissionDatasourceRequest</a> object with the specified parameters. <br /></td>
      </tr>

      <tr className="separator:a663f754dbe5eca909dbb972b4b96613c">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>
    </table>

    <table className="memberdecls">
      <tr className="heading">
        <td colSpan="2">
          <h2 className="groupheader"> Public Attributes</h2>
        </td>
      </tr>

      <tr className="memitem:a6ef25c444f806fb185e2d24282186a7f" id="r_a6ef25c444f806fb185e2d24282186a7f">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a6ef25c444f806fb185e2d24282186a7f">name</a></td>
      </tr>

      <tr className="memdesc:a6ef25c444f806fb185e2d24282186a7f">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Name of the user or role to which the permission will be granted. <br /></td>
      </tr>

      <tr className="separator:a6ef25c444f806fb185e2d24282186a7f">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:aeb1fc2099d57bba4a639e8a7ec91c926" id="r_aeb1fc2099d57bba4a639e8a7ec91c926">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#aeb1fc2099d57bba4a639e8a7ec91c926">permission</a></td>
      </tr>

      <tr className="memdesc:aeb1fc2099d57bba4a639e8a7ec91c926">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Permission to grant to the user or role. <br /></td>
      </tr>

      <tr className="separator:aeb1fc2099d57bba4a639e8a7ec91c926">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:a0b2b98ecece46b8301ffc8db024f6112" id="r_a0b2b98ecece46b8301ffc8db024f6112">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a0b2b98ecece46b8301ffc8db024f6112">datasourceName</a></td>
      </tr>

      <tr className="memdesc:a0b2b98ecece46b8301ffc8db024f6112">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Name of the data source on which the permission will be granted. <br /></td>
      </tr>

      <tr className="separator:a0b2b98ecece46b8301ffc8db024f6112">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

      <tr className="memitem:aa3eb1a8e895c84be782762c5889cc96e" id="r_aa3eb1a8e895c84be782762c5889cc96e">
        <td className="memItemLeft" align="right" valign="top">std::map\< std::string, std::string > </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#aa3eb1a8e895c84be782762c5889cc96e">options</a></td>
      </tr>

      <tr className="memdesc:aa3eb1a8e895c84be782762c5889cc96e">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Optional parameters. <br /></td>
      </tr>

      <tr className="separator:aa3eb1a8e895c84be782762c5889cc96e">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>
    </table>

    <h2 className="groupheader">Detailed Description</h2>

    <div className="textblock">
      <p>A set of parameters for <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#a5ea6ea4a2af4895f3acf2131ffe36c56">GPUdb::grantPermissionDatasource</a>. </p>
      <p>Grants a <a href="/content/concepts/data_sources/" target="_top">data source</a> permission to a user or role. </p>
      <p className="definition">Definition at line <a className="el" href="/content/api/cpp/grant__permission__datasource_8h_source#l00019">19</a> of file <a className="el" href="/content/api/cpp/grant__permission__datasource_8h_source">grant\_permission\_datasource.h</a>.</p>
    </div>

    <h2 className="groupheader">Constructor & Destructor Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#acd91171ec96862272e0f224311ae8452">◆ </a></span>GrantPermissionDatasourceRequest() <span className="overload">\[1/2]</span></h2>

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">gpudb::GrantPermissionDatasourceRequest::GrantPermissionDatasourceRequest </td>
                  <td>(</td>

                  <td className="paramname">
                    <span className="paramname">
                      <span className="em" />
                    </span>
                  </td>

                  <td>)</td>

                  <td />
                </tr>
              </table>
            </td>

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionDatasourceRequest" title="A set of parameters for GPUdb::grantPermissionDatasource.">GrantPermissionDatasourceRequest</a> object with default parameters. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/grant__permission__datasource_8h_source#l00025">25</a> of file <a className="el" href="/content/api/cpp/grant__permission__datasource_8h_source">grant\_permission\_datasource.h</a>.</p>
      </div>
    </div>

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

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">gpudb::GrantPermissionDatasourceRequest::GrantPermissionDatasourceRequest </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">datasourceName\_</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>
              </table>
            </td>

            <td className="mlabels-right"> <span className="mlabels"><span className="mlabel inline">inline</span></span> </td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionDatasourceRequest" title="A set of parameters for GPUdb::grantPermissionDatasource.">GrantPermissionDatasourceRequest</a> object with the specified parameters. </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#a7537475c56ceaa2d2583ba633210c191">grant\_permission\_datasource\_admin</a>: Admin access on the given data source. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#ae657f681c0269d80d72dd986106ccf28">grant\_permission\_datasource\_connect</a>: Connect access on the given data source. </li>
                  </ul>
                </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">datasourceName\_</td>
                <td>Name of the data source on which the permission will be granted. Must be an existing data source, or an empty string to grant permission on all data sources. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">options\_</td>
                <td>Optional parameters. The default value is an empty map. </td>
              </tr>
            </table>
          </div>
        </div>

        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/grant__permission__datasource_8h_source#l00060">60</a> of file <a className="el" href="/content/api/cpp/grant__permission__datasource_8h_source">grant\_permission\_datasource.h</a>.</p>
      </div>
    </div>

    <h2 className="groupheader">Member Data Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#a0b2b98ecece46b8301ffc8db024f6112">◆ </a></span>datasourceName</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::string gpudb::GrantPermissionDatasourceRequest::datasourceName</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Name of the data source on which the permission will be granted. </p>
        <p>Must be an existing data source, or an empty string to grant permission on all data sources. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/grant__permission__datasource_8h_source#l00093">93</a> of file <a className="el" href="/content/api/cpp/grant__permission__datasource_8h_source">grant\_permission\_datasource.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a6ef25c444f806fb185e2d24282186a7f">◆ </a></span>name</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::string gpudb::GrantPermissionDatasourceRequest::name</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Name of the user or role to which the permission will be granted. </p>
        <p>Must be an existing user or role. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/grant__permission__datasource_8h_source#l00072">72</a> of file <a className="el" href="/content/api/cpp/grant__permission__datasource_8h_source">grant\_permission\_datasource.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#aa3eb1a8e895c84be782762c5889cc96e">◆ </a></span>options</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::map\<std::string, std::string> gpudb::GrantPermissionDatasourceRequest::options</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Optional parameters. </p>
        <p>The default value is an empty map. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/grant__permission__datasource_8h_source#l00098">98</a> of file <a className="el" href="/content/api/cpp/grant__permission__datasource_8h_source">grant\_permission\_datasource.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#aeb1fc2099d57bba4a639e8a7ec91c926">◆ </a></span>permission</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::string gpudb::GrantPermissionDatasourceRequest::permission</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Permission to grant to the user or role. </p>
        <p>Supported values: </p>

        <ul>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a7537475c56ceaa2d2583ba633210c191">grant\_permission\_datasource\_admin</a>: Admin access on the given data source. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#ae657f681c0269d80d72dd986106ccf28">grant\_permission\_datasource\_connect</a>: Connect access on the given data source. </li>
        </ul>

        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/grant__permission__datasource_8h_source#l00086">86</a> of file <a className="el" href="/content/api/cpp/grant__permission__datasource_8h_source">grant\_permission\_datasource.h</a>.</p>
      </div>
    </div>

    <hr />

    The documentation for this struct was generated from the following file:

    <ul>
      <li>gpudb/protocol/<a className="el" href="/content/api/cpp/grant__permission__datasource_8h_source">grant\_permission\_datasource.h</a></li>
    </ul>
  </div>
</div>
