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

# grantPermissionCredential

<div className="kinetica-doxygen">
  <div id="a5af24b8cecd2bbd61c1fb7e9725e33a8" />

  <h2 className="memtitle"><span className="permalink"><a href="#a5af24b8cecd2bbd61c1fb7e9725e33a8">◆ </a></span>grantPermissionCredential() <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_1GrantPermissionCredentialResponse">GrantPermissionCredentialResponse</a> gpudb::GPUdb::grantPermissionCredential </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionCredentialRequest">GrantPermissionCredentialRequest</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 <a href="/content/security/sec_concepts/#security-concepts-permissions-credential" target="_top">credential-level permission</a> 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_1GrantPermissionCredentialRequest">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_1GrantPermissionCredentialResponse">Response</a> object containing the result of the operation. </div>
      </div>
    </div>
  </div>

  <div id="a5e6ce0e2b63b4f558fc15a2ffbbd9be2" />

  <h2 className="memtitle"><span className="permalink"><a href="#a5e6ce0e2b63b4f558fc15a2ffbbd9be2">◆ </a></span>grantPermissionCredential() <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_1GrantPermissionCredentialResponse">GrantPermissionCredentialResponse</a> & gpudb::GPUdb::grantPermissionCredential </td>
          <td>(</td>
          <td className="paramtype">const <a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionCredentialRequest">GrantPermissionCredentialRequest</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_1GrantPermissionCredentialResponse">GrantPermissionCredentialResponse</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 <a href="/content/security/sec_concepts/#security-concepts-permissions-credential" target="_top">credential-level permission</a> 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_1GrantPermissionCredentialRequest">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_1GrantPermissionCredentialResponse">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_1GrantPermissionCredentialResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>

  <div id="ab57fd01de61ce3a433bee4e63061a605" />

  <h2 className="memtitle"><span className="permalink"><a href="#ab57fd01de61ce3a433bee4e63061a605">◆ </a></span>grantPermissionCredential() <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_1GrantPermissionCredentialResponse">GrantPermissionCredentialResponse</a> gpudb::GPUdb::grantPermissionCredential </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">credentialName</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 <a href="/content/security/sec_concepts/#security-concepts-permissions-credential" target="_top">credential-level permission</a> 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#a3415c25f8cafd174adfbe1df56c54db0">grant\_permission\_credential\_credential\_admin</a>: Full read/write and administrative access on the credential. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3b091a1057fa2c25e943bbe3dc6d9034">grant\_permission\_credential\_credential\_read</a>: Ability to read and use the credential. </li>
                </ul>
              </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">credentialName</td>
              <td>Name of the credential on which the permission will be granted. Must be an existing credential, or an empty string to grant access on all credentials. </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>

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

  <div id="a4c9725405ce5877be0f5150a4cd5a916" />

  <h2 className="memtitle"><span className="permalink"><a href="#a4c9725405ce5877be0f5150a4cd5a916">◆ </a></span>grantPermissionCredential() <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_1GrantPermissionCredentialResponse">GrantPermissionCredentialResponse</a> & gpudb::GPUdb::grantPermissionCredential </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">credentialName</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_1GrantPermissionCredentialResponse">GrantPermissionCredentialResponse</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 <a href="/content/security/sec_concepts/#security-concepts-permissions-credential" target="_top">credential-level permission</a> 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#a3415c25f8cafd174adfbe1df56c54db0">grant\_permission\_credential\_credential\_admin</a>: Full read/write and administrative access on the credential. </li>
                  <li> <a className="el" href="/content/api/cpp/namespacegpudb#a3b091a1057fa2c25e943bbe3dc6d9034">grant\_permission\_credential\_credential\_read</a>: Ability to read and use the credential. </li>
                </ul>
              </td>
            </tr>

            <tr>
              <td className="paramdir">\[in]</td>
              <td className="paramname">credentialName</td>
              <td>Name of the credential on which the permission will be granted. Must be an existing credential, or an empty string to grant access on all credentials. </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>

            <tr>
              <td className="paramdir">\[out]</td>
              <td className="paramname">response\_</td>
              <td><a className="el" href="/content/api/cpp/structgpudb_1_1GrantPermissionCredentialResponse">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_1GrantPermissionCredentialResponse">Response</a> object containing the result of the operation (initially passed in by reference). </div>
      </div>
    </div>
  </div>
</div>
