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

# show_security

<div className="kinetica-pydoc">
  <div className="dl py method">
    <div className="dt sig sig-object py" id="gpudb.GPUdb.show_security"> <span className="sig-name descname"><span className="pre">show\_security</span></span><span className="sig-paren">(</span><span className="em sig-param"><span className="n"><span className="pre">names</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">None</span></span></span>, <span className="em sig-param"><span className="n"><span className="pre">options</span></span><span className="o"><span className="pre">=</span></span><span className="default_value"><span className="pre">{"{"}{"}"}</span></span></span><span className="sig-paren">)</span><a href="https://github.com/kineticadb/kinetica-api-python/blob/master/gpudb/gpudb.py#L39322"><span className="viewcode-link"><span className="pre">\[source]</span></span></a></div>

    <div className="dd">
      <p>Shows security information relating to users and/or roles. If the caller is not a system administrator, only information relating to the caller and their roles is returned.</p>
      <p><strong>Parameters</strong></p>

      <div className="blockquote">
        <div>
          <div className="dl">
            <div className="dt">names (<span className="em">list of str</span>) –</div>

            <div className="dd">
              <p>A list of names of users and/or roles about which security information is requested. If none are provided, information about all users and roles will be returned. The user can provide a single element (which will be automatically promoted to a list internally) or a list.</p>
            </div>

            <div className="dt">options (<span className="em">dict of str to str</span>) –</div>

            <div className="dd">
              <p>Optional parameters. Allowed keys are:</p>

              <ul>
                <li>
                  <p><strong>show\_current\_user</strong> – If <span className="em">true</span>, returns only security information for the current user. Allowed values are:</p>

                  <ul className="simple">
                    <li>
                      <p>true</p>
                    </li>

                    <li>
                      <p>false</p>
                    </li>
                  </ul>

                  <p>The default value is ‘false’.</p>
                </li>
              </ul>

              <p>The default value is an empty dict ( {"{"}{"}"} ).</p>
            </div>
          </div>
        </div>
      </div>

      <p><strong>Returns</strong></p>

      <div className="blockquote">
        <div>
          <p>A dict with the following entries–</p>

          <div className="dl simple">
            <div className="dt">types (<span className="em">dict of str to str</span>) –</div>

            <div className="dd">
              <p>Map of user/role name to the type of that user/role. Allowed values are:</p>

              <ul className="simple">
                <li>
                  <p><strong>internal\_user</strong> – A user whose credentials are managed by the database system.</p>
                </li>

                <li>
                  <p><strong>external\_user</strong> – A user whose credentials are managed by an external LDAP.</p>
                </li>

                <li>
                  <p><strong>role</strong> – A role.</p>
                </li>
              </ul>
            </div>

            <div className="dt">roles (<span className="em">dict of str to lists of str</span>) –</div>

            <div className="dd">
              <p>Map of user/role name to a list of names of roles of which that user/role is a member.</p>
            </div>

            <div className="dt">permissions (<span className="em">dict of str to lists of dicts of str to str</span>) –</div>

            <div className="dd">
              <p>Map of user/role name to a list of permissions directly granted to that user/role.</p>
            </div>

            <div className="dt">resource\_groups (<span className="em">dict of str to str</span>) –</div>

            <div className="dd">
              <p>Map of user name to resource group name.</p>
            </div>

            <div className="dt">info (<span className="em">dict of str to str</span>) –</div>

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