hp-opencloud/master/samples/Identity/get_user_by_name.php">Get the executable PHP script for this example</a></p>
</div>
<div class="section" id="retrieve-a-user-by-user-id">
<h2>Retrieve a user by user ID<a class="headerlink" href="#retrieve-a-user-by-user-id" title="Permalink to this headline">¶</a></h2>
<div class="highlight-php"><div class="highlight"><pre><span class="k">use</span> <span class="nx">OpenCloud\Identity\Constants\User</span> <span class="k">as</span> <span class="nx">UserConst</span><spa