> ## 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::GrantRoleRequest

> gpudb::GrantRoleRequest — 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#ade2d2cdb909e06802487b2045858fc11">GPUdb::grantRole</a>. <a href="#details">More...</a></p>
    <p><code>#include \<<a className="el" href="/content/api/cpp/grant__role_8h_source">gpudb/protocol/grant\_role.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:aa1f1a81b1651958603443595b054d159" id="r_aa1f1a81b1651958603443595b054d159">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#aa1f1a81b1651958603443595b054d159">GrantRoleRequest</a> ()</td>
      </tr>

      <tr className="memdesc:aa1f1a81b1651958603443595b054d159">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1GrantRoleRequest" title="A set of parameters for GPUdb::grantRole.">GrantRoleRequest</a> object with default parameters. <br /></td>
      </tr>

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

      <tr className="memitem:a46888a3ac0aff0f258778c0a61a1a7e0" id="r_a46888a3ac0aff0f258778c0a61a1a7e0">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a46888a3ac0aff0f258778c0a61a1a7e0">GrantRoleRequest</a> (const std::string \&role\_, const std::string \&member\_, const std::map\< std::string, std::string > \&options\_)</td>
      </tr>

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

      <tr className="separator:a46888a3ac0aff0f258778c0a61a1a7e0">
        <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:a9ef5639c9071a45f886457b104a032d7" id="r_a9ef5639c9071a45f886457b104a032d7">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a9ef5639c9071a45f886457b104a032d7">role</a></td>
      </tr>

      <tr className="memdesc:a9ef5639c9071a45f886457b104a032d7">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Name of the role in which membership will be granted. <br /></td>
      </tr>

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

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

      <tr className="memdesc:a1040796dbcf98d65f6abd7ac2fa9b790">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Name of the user or role that will be granted membership in <a className="el" href="#a9ef5639c9071a45f886457b104a032d7">role</a>. <br /></td>
      </tr>

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

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

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

      <tr className="separator:a35808da1e083691fa9afeeabefaed9b8">
        <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#ade2d2cdb909e06802487b2045858fc11">GPUdb::grantRole</a>. </p>
      <p>Grants membership in a role to a user or role. </p>
      <p className="definition">Definition at line <a className="el" href="/content/api/cpp/grant__role_8h_source#l00017">17</a> of file <a className="el" href="/content/api/cpp/grant__role_8h_source">grant\_role.h</a>.</p>
    </div>

    <h2 className="groupheader">Constructor & Destructor Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#aa1f1a81b1651958603443595b054d159">◆ </a></span>GrantRoleRequest() <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::GrantRoleRequest::GrantRoleRequest </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_1GrantRoleRequest" title="A set of parameters for GPUdb::grantRole.">GrantRoleRequest</a> object with default parameters. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/grant__role_8h_source#l00022">22</a> of file <a className="el" href="/content/api/cpp/grant__role_8h_source">grant\_role.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a46888a3ac0aff0f258778c0a61a1a7e0">◆ </a></span>GrantRoleRequest() <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::GrantRoleRequest::GrantRoleRequest </td>
                  <td>(</td>
                  <td className="paramtype">const std::string &</td>
                  <td className="paramname"><span className="paramname"><span className="em">role\_</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">member\_</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_1GrantRoleRequest" title="A set of parameters for GPUdb::grantRole.">GrantRoleRequest</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">role\_</td>
                <td>Name of the role in which membership will be granted. Must be an existing role. </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">member\_</td>
                <td>Name of the user or role that will be granted membership in <span className="em arg">role\_</span>. Must be an existing user or role. </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__role_8h_source#l00040">40</a> of file <a className="el" href="/content/api/cpp/grant__role_8h_source">grant\_role.h</a>.</p>
      </div>
    </div>

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

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

      <div className="memdoc">
        <p>Name of the user or role that will be granted membership in <a className="el" href="#a9ef5639c9071a45f886457b104a032d7">role</a>. </p>
        <p>Must be an existing user or role. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/grant__role_8h_source#l00057">57</a> of file <a className="el" href="/content/api/cpp/grant__role_8h_source">grant\_role.h</a>.</p>
      </div>
    </div>

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

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::map\<std::string, std::string> gpudb::GrantRoleRequest::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__role_8h_source#l00062">62</a> of file <a className="el" href="/content/api/cpp/grant__role_8h_source">grant\_role.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a9ef5639c9071a45f886457b104a032d7">◆ </a></span>role</h2>

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

      <div className="memdoc">
        <p>Name of the role in which membership will be granted. </p>
        <p>Must be an existing role. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/grant__role_8h_source#l00051">51</a> of file <a className="el" href="/content/api/cpp/grant__role_8h_source">grant\_role.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__role_8h_source">grant\_role.h</a></li>
    </ul>
  </div>
</div>
