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

> gpudb::HasRoleResponse — Kinetica C++ API

<div className="kinetica-doxygen">
  <div className="contents">
    <p>A set of results returned by <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#a9de0d2bb24bdfa17ea915c8c29ab9f06">GPUdb::hasRole</a>. <a href="#details">More...</a></p>
    <p><code>#include \<<a className="el" href="/content/api/cpp/has__role_8h_source">gpudb/protocol/has\_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:a16a47e817c2565367303acde39c2ccf7" id="r_a16a47e817c2565367303acde39c2ccf7">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a16a47e817c2565367303acde39c2ccf7">HasRoleResponse</a> ()</td>
      </tr>

      <tr className="memdesc:a16a47e817c2565367303acde39c2ccf7">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1HasRoleResponse" title="A set of results returned by GPUdb::hasRole.">HasRoleResponse</a> object with default parameters. <br /></td>
      </tr>

      <tr className="separator:a16a47e817c2565367303acde39c2ccf7">
        <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:a2c387cf804f604399e1aa192bb5119e7" id="r_a2c387cf804f604399e1aa192bb5119e7">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a2c387cf804f604399e1aa192bb5119e7">principal</a></td>
      </tr>

      <tr className="memdesc:a2c387cf804f604399e1aa192bb5119e7">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Value of <a className="el" href="/content/api/cpp/structgpudb_1_1HasRoleRequest#a2d3e3cf052ec4b4fb42938501bf2de0f">principal</a>. <br /></td>
      </tr>

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

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

      <tr className="memdesc:a6805cec861e62d166a9b8cfc28011496">
        <td className="mdescLeft"> </td>
        <td className="mdescRight"><a className="el" href="/content/api/cpp/structgpudb_1_1HasRoleRequest#aeba5e51d592c1ad66b4010878a79733d">role</a> for which membership is being checked. <br /></td>
      </tr>

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

      <tr className="memitem:a9fb645db6c469a4a10e59b4e823461fa" id="r_a9fb645db6c469a4a10e59b4e823461fa">
        <td className="memItemLeft" align="right" valign="top">bool </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a9fb645db6c469a4a10e59b4e823461fa">hasRole</a></td>
      </tr>

      <tr className="memdesc:a9fb645db6c469a4a10e59b4e823461fa">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Indicates whether the specified user has membership in the specified target <a className="el" href="/content/api/cpp/structgpudb_1_1HasRoleRequest#aeba5e51d592c1ad66b4010878a79733d">role</a>. <br /></td>
      </tr>

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

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

      <tr className="memdesc:adaac333c361072a443c9a13f76376c70">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Additional information. <br /></td>
      </tr>

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

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

    <div className="textblock">
      <p>A set of results returned by <a className="el" href="/content/api/cpp/classgpudb_1_1GPUdb#a9de0d2bb24bdfa17ea915c8c29ab9f06">GPUdb::hasRole</a>. </p>
      <p className="definition">Definition at line <a className="el" href="/content/api/cpp/has__role_8h_source#l00188">188</a> of file <a className="el" href="/content/api/cpp/has__role_8h_source">has\_role.h</a>.</p>
    </div>

    <h2 className="groupheader">Constructor & Destructor Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#a16a47e817c2565367303acde39c2ccf7">◆ </a></span>HasRoleResponse()</h2>

    <div className="memitem">
      <div className="memproto">
        <table className="mlabels">
          <tr>
            <td className="mlabels-left">
              <table className="memname">
                <tr>
                  <td className="memname">gpudb::HasRoleResponse::HasRoleResponse </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_1HasRoleResponse" title="A set of results returned by GPUdb::hasRole.">HasRoleResponse</a> object with default parameters. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/has__role_8h_source#l00193">193</a> of file <a className="el" href="/content/api/cpp/has__role_8h_source">has\_role.h</a>.</p>
      </div>
    </div>

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

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">bool gpudb::HasRoleResponse::hasRole</td>
          </tr>
        </table>
      </div>

      <div className="memdoc">
        <p>Indicates whether the specified user has membership in the specified target <a className="el" href="/content/api/cpp/structgpudb_1_1HasRoleRequest#aeba5e51d592c1ad66b4010878a79733d">role</a>. </p>
        <p>Supported values: </p>

        <ul>
          <li> true: User has membership in the role. </li>
          <li> false: User does not have membership in the role. </li>
        </ul>

        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/has__role_8h_source#l00221">221</a> of file <a className="el" href="/content/api/cpp/has__role_8h_source">has\_role.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#adaac333c361072a443c9a13f76376c70">◆ </a></span>info</h2>

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

      <div className="memdoc">
        <p>Additional information. </p>

        <ul>
          <li>
            <a className="el" href="/content/api/cpp/namespacegpudb#a8875d5d8512c7cee5c44c43d45391d07">has\_role\_direct</a>: <a className="el" href="/content/api/cpp/namespacegpudb#a7a9e6d715315aec0f6eb6ceb3c6a5a55">true</a> when principal is directly a member of the role. Supported values:

            <ul>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a7a9e6d715315aec0f6eb6ceb3c6a5a55">has\_role\_true</a> </li>
              <li> <a className="el" href="/content/api/cpp/namespacegpudb#a75680d2b8b9603da05dcd22794162a06">has\_role\_false</a> </li>
            </ul>

            The default value is <a className="el" href="/content/api/cpp/namespacegpudb#a75680d2b8b9603da05dcd22794162a06">has\_role\_false</a>.
          </li>
        </ul>

        <p>The default value is an empty map. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/has__role_8h_source#l00239">239</a> of file <a className="el" href="/content/api/cpp/has__role_8h_source">has\_role.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a2c387cf804f604399e1aa192bb5119e7">◆ </a></span>principal</h2>

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

      <div className="memdoc">
        <p>Value of <a className="el" href="/content/api/cpp/structgpudb_1_1HasRoleRequest#a2d3e3cf052ec4b4fb42938501bf2de0f">principal</a>. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/has__role_8h_source#l00204">204</a> of file <a className="el" href="/content/api/cpp/has__role_8h_source">has\_role.h</a>.</p>
      </div>
    </div>

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

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

      <div className="memdoc">
        <p><a className="el" href="/content/api/cpp/structgpudb_1_1HasRoleRequest#aeba5e51d592c1ad66b4010878a79733d">role</a> for which membership is being checked. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/has__role_8h_source#l00210">210</a> of file <a className="el" href="/content/api/cpp/has__role_8h_source">has\_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/has__role_8h_source">has\_role.h</a></li>
    </ul>
  </div>
</div>
