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

# grantPermissionDatasource

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

  <h2 className="memtitle"><span className="permalink"><a href="#a33500071e512f5935320297f1550a0f5">◆ </a></span>grantPermissionDatasource() <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"><a className="el" href="/content/api/cs/classkinetica_1_1GrantPermissionDatasourceResponse">GrantPermissionDatasourceResponse</a> kinetica.Kinetica.grantPermissionDatasource </td>
                <td>(</td>
                <td className="paramtype"><a className="el" href="/content/api/cs/classkinetica_1_1GrantPermissionDatasourceRequest">GrantPermissionDatasourceRequest</a></td>
                <td className="paramname"><span className="paramname"><span className="em">request\_</span></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>\[DEPRECATED–please use <a className="el" href="#a9ad93fdd727699f581ba0d742613b887">grantPermission</a> instead] Grants a <a href="/content/concepts/data_sources/" target="_top">data source</a> permission to a user or role. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramname">request\_</td>
              <td>Request 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">Response object containing the result of the operation. </div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L42424">42424</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>

  <div id="acac329e7153e17497811cd16b9972f8a" />

  <h2 className="memtitle"><span className="permalink"><a href="#acac329e7153e17497811cd16b9972f8a">◆ </a></span>grantPermissionDatasource() <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"><a className="el" href="/content/api/cs/classkinetica_1_1GrantPermissionDatasourceResponse">GrantPermissionDatasourceResponse</a> kinetica.Kinetica.grantPermissionDatasource </td>
                <td>(</td>
                <td className="paramtype">string</td>
                <td className="paramname"><span className="paramname"><span className="em">name</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">string</td>
                <td className="paramname"><span className="paramname"><span className="em">permission</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">string</td>
                <td className="paramname"><span className="paramname"><span className="em">datasource\_name</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">IDictionary\< string, string ></td>
                <td className="paramname"><span className="paramname"><span className="em">options</span></span><span className="paramdefsep"> = </span><span className="paramdefval">null</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>\[DEPRECATED–please use <a className="el" href="#a9ad93fdd727699f581ba0d742613b887">grantPermission</a> instead] Grants a <a href="/content/concepts/data_sources/" target="_top">data source</a> permission to a user or role. </p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <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="paramname">permission</td>

              <td>
                Permission to grant to the user or role. Supported values:

                <ul>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1GrantPermissionDatasourceRequest_1_1Permission#aeda92b2de5dfb948a902bd790d04f791">ADMIN</a>: Admin access on the given data source. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1GrantPermissionDatasourceRequest_1_1Permission#ab2b7f8612e7c7ebbc697a918328519cc">CONNECT</a>: Connect access on the given data source. </li>
                </ul>
              </td>
            </tr>

            <tr>
              <td className="paramname">datasource\_name</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="paramname">options</td>
              <td>Optional parameters. The default value is an empty Dictionary.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Response object containing the result of the operation. </div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L42483">42483</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>

  <div id="a761eea920112c1a66c8b336bacc6bf16" />

  <h2 className="memtitle"><span className="permalink"><a href="#a761eea920112c1a66c8b336bacc6bf16">◆ </a></span>GrantPermissionDatasourceAsync() <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">async System.Threading.Tasks.Task\< <a className="el" href="/content/api/cs/classkinetica_1_1GrantPermissionDatasourceResponse">GrantPermissionDatasourceResponse</a> > kinetica.Kinetica.GrantPermissionDatasourceAsync </td>
                <td>(</td>
                <td className="paramtype"><a className="el" href="/content/api/cs/classkinetica_1_1GrantPermissionDatasourceRequest">GrantPermissionDatasourceRequest</a></td>
                <td className="paramname"><span className="paramname"><span className="em">request\_</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">System.Threading.CancellationToken</td>
                <td className="paramname"><span className="paramname"><span className="em">cancellationToken</span></span><span className="paramdefsep"> = </span><span className="paramdefval">default</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>\[DEPRECATED–please use <a className="el" href="#a9ad93fdd727699f581ba0d742613b887">grantPermission</a> instead] Grants a <a href="/content/concepts/data_sources/" target="_top">data source</a> permission to a user or role. </p>
      <p>(async)</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <td className="paramname">request\_</td>
              <td>Request object containing the parameters for the operation.</td>
            </tr>

            <tr>
              <td className="paramname">cancellationToken</td>
              <td>Cancellation token to cancel the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Task that returns the response object containing the result of the operation.</div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L42443">42443</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>

  <div id="acb6acd4d549500bb0f282ee1d85e37de" />

  <h2 className="memtitle"><span className="permalink"><a href="#acb6acd4d549500bb0f282ee1d85e37de">◆ </a></span>GrantPermissionDatasourceAsync() <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">async System.Threading.Tasks.Task\< <a className="el" href="/content/api/cs/classkinetica_1_1GrantPermissionDatasourceResponse">GrantPermissionDatasourceResponse</a> > kinetica.Kinetica.GrantPermissionDatasourceAsync </td>
                <td>(</td>
                <td className="paramtype">string</td>
                <td className="paramname"><span className="paramname"><span className="em">name</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">string</td>
                <td className="paramname"><span className="paramname"><span className="em">permission</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">string</td>
                <td className="paramname"><span className="paramname"><span className="em">datasource\_name</span></span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">IDictionary\< string, string ></td>
                <td className="paramname"><span className="paramname"><span className="em">options</span></span><span className="paramdefsep"> = </span><span className="paramdefval">null</span>, </td>
              </tr>

              <tr>
                <td className="paramkey" />

                <td />

                <td className="paramtype">System.Threading.CancellationToken</td>
                <td className="paramname"><span className="paramname"><span className="em">cancellationToken</span></span><span className="paramdefsep"> = </span><span className="paramdefval">default</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>\[DEPRECATED–please use <a className="el" href="#a9ad93fdd727699f581ba0d742613b887">grantPermission</a> instead] Grants a <a href="/content/concepts/data_sources/" target="_top">data source</a> permission to a user or role. </p>
      <p>(async)</p>

      <div className="dl params">
        <div className="dt">Parameters</div>

        <div className="dd">
          <table className="params">
            <tr>
              <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="paramname">permission</td>

              <td>
                Permission to grant to the user or role. Supported values:

                <ul>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1GrantPermissionDatasourceRequest_1_1Permission#aeda92b2de5dfb948a902bd790d04f791">ADMIN</a>: Admin access on the given data source. </li>
                  <li> <a className="el" href="/content/api/cs/structkinetica_1_1GrantPermissionDatasourceRequest_1_1Permission#ab2b7f8612e7c7ebbc697a918328519cc">CONNECT</a>: Connect access on the given data source. </li>
                </ul>
              </td>
            </tr>

            <tr>
              <td className="paramname">datasource\_name</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="paramname">options</td>
              <td>Optional parameters. The default value is an empty Dictionary.</td>
            </tr>

            <tr>
              <td className="paramname">cancellationToken</td>
              <td>Cancellation token to cancel the operation.</td>
            </tr>
          </table>
        </div>
      </div>

      <div className="dl section return">
        <div className="dt">Returns</div>
        <div className="dd">Task that returns the response object containing the result of the operation.</div>
      </div>

      <p className="definition">Definition at line <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs#L42529">42529</a> of file <a className="el" href="https://github.com/kineticadb/kinetica-api-cs/blob/master/Kinetica/KineticaFunctions.cs">KineticaFunctions.cs</a>.</p>
    </div>
  </div>
</div>
