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

> gpudb::GrantPermissionDirectoryRequest — 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#aa02d37420e163a262aa02ac482c0a2fa">GPUdb::grantPermissionDirectory</a>. <a href="#details">More...</a></p>
    <p><code>#include \<<a className="el" href="/content/api/cpp/grant__permission__directory_8h_source">gpudb/protocol/grant\_permission\_directory.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:a53247eef651a074f06200b74e14ebcb0" id="r_a53247eef651a074f06200b74e14ebcb0">
        <td className="memItemLeft" align="right" valign="top"> </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#a53247eef651a074f06200b74e14ebcb0">GrantPermissionDirectoryRequest</a> ()</td>
      </tr>

      <tr className="memdesc:a53247eef651a074f06200b74e14ebcb0">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Constructs a <a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionDirectoryRequest" title="A set of parameters for GPUdb::grantPermissionDirectory.">GrantPermissionDirectoryRequest</a> object with default parameters. <br /></td>
      </tr>

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

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

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

      <tr className="separator:a845db6ee42dc203ebaa09c7e7b3596ca">
        <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:acaa9ea65716a7b614260d31569b315c5" id="r_acaa9ea65716a7b614260d31569b315c5">
        <td className="memItemLeft" align="right" valign="top">std::string </td>
        <td className="memItemRight" valign="bottom"><a className="el" href="#acaa9ea65716a7b614260d31569b315c5">name</a></td>
      </tr>

      <tr className="memdesc:acaa9ea65716a7b614260d31569b315c5">
        <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:acaa9ea65716a7b614260d31569b315c5">
        <td className="memSeparator" colSpan="2"> </td>
      </tr>

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

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

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

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

      <tr className="memdesc:a8f9558d9b5d8404f2e3ec67f6e65cc4c">
        <td className="mdescLeft"> </td>
        <td className="mdescRight">Name of the KiFS directory to which the permission grants access. <br /></td>
      </tr>

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

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

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

      <tr className="separator:a822014f18a7dc08ee5791ac40213c43c">
        <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#aa02d37420e163a262aa02ac482c0a2fa">GPUdb::grantPermissionDirectory</a>. </p>
      <p>Grants a <a href="/content/tools/kifs/" target="_top">KiFS</a> directory-level permission to a user or role. </p>
      <p className="definition">Definition at line <a className="el" href="/content/api/cpp/grant__permission__directory_8h_source#l00019">19</a> of file <a className="el" href="/content/api/cpp/grant__permission__directory_8h_source">grant\_permission\_directory.h</a>.</p>
    </div>

    <h2 className="groupheader">Constructor & Destructor Documentation</h2>
    <h2 className="memtitle"><span className="permalink"><a href="#a53247eef651a074f06200b74e14ebcb0">◆ </a></span>GrantPermissionDirectoryRequest() <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::GrantPermissionDirectoryRequest::GrantPermissionDirectoryRequest </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_1GrantPermissionDirectoryRequest" title="A set of parameters for GPUdb::grantPermissionDirectory.">GrantPermissionDirectoryRequest</a> object with default parameters. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/grant__permission__directory_8h_source#l00025">25</a> of file <a className="el" href="/content/api/cpp/grant__permission__directory_8h_source">grant\_permission\_directory.h</a>.</p>
      </div>
    </div>

    <h2 className="memtitle"><span className="permalink"><a href="#a845db6ee42dc203ebaa09c7e7b3596ca">◆ </a></span>GrantPermissionDirectoryRequest() <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::GrantPermissionDirectoryRequest::GrantPermissionDirectoryRequest </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">directoryName\_</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_1GrantPermissionDirectoryRequest" title="A set of parameters for GPUdb::grantPermissionDirectory.">GrantPermissionDirectoryRequest</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#a268fdef8ea1156901efbb6bc763013dc">grant\_permission\_directory\_directory\_read</a>: For files in the directory, access to list files, download files, or use files in server side functions. </li>
                    <li> <a className="el" href="/content/api/cpp/namespacegpudb#a5bbac3b95c72870482d251e60f4805bb">grant\_permission\_directory\_directory\_write</a>: Access to upload files to, or delete files from, the directory. A user or role with write access automatically has read access. </li>
                  </ul>
                </td>
              </tr>

              <tr>
                <td className="paramdir">\[in]</td>
                <td className="paramname">directoryName\_</td>
                <td>Name of the KiFS directory to which the permission grants access. An empty directory name grants access to all KiFS directories. </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__directory_8h_source#l00063">63</a> of file <a className="el" href="/content/api/cpp/grant__permission__directory_8h_source">grant\_permission\_directory.h</a>.</p>
      </div>
    </div>

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

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

      <div className="memdoc">
        <p>Name of the KiFS directory to which the permission grants access. </p>
        <p>An empty directory name grants access to all KiFS directories. </p>
        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/grant__permission__directory_8h_source#l00097">97</a> of file <a className="el" href="/content/api/cpp/grant__permission__directory_8h_source">grant\_permission\_directory.h</a>.</p>
      </div>
    </div>

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

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::string gpudb::GrantPermissionDirectoryRequest::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__directory_8h_source#l00075">75</a> of file <a className="el" href="/content/api/cpp/grant__permission__directory_8h_source">grant\_permission\_directory.h</a>.</p>
      </div>
    </div>

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

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::map\<std::string, std::string> gpudb::GrantPermissionDirectoryRequest::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__directory_8h_source#l00102">102</a> of file <a className="el" href="/content/api/cpp/grant__permission__directory_8h_source">grant\_permission\_directory.h</a>.</p>
      </div>
    </div>

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

    <div className="memitem">
      <div className="memproto">
        <table className="memname">
          <tr>
            <td className="memname">std::string gpudb::GrantPermissionDirectoryRequest::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#a268fdef8ea1156901efbb6bc763013dc">grant\_permission\_directory\_directory\_read</a>: For files in the directory, access to list files, download files, or use files in server side functions. </li>
          <li> <a className="el" href="/content/api/cpp/namespacegpudb#a5bbac3b95c72870482d251e60f4805bb">grant\_permission\_directory\_directory\_write</a>: Access to upload files to, or delete files from, the directory. A user or role with write access automatically has read access. </li>
        </ul>

        <p className="definition">Definition at line <a className="el" href="/content/api/cpp/grant__permission__directory_8h_source#l00091">91</a> of file <a className="el" href="/content/api/cpp/grant__permission__directory_8h_source">grant\_permission\_directory.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__directory_8h_source">grant\_permission\_directory.h</a></li>
    </ul>
  </div>
</div>
