<p>Should be possible with a simple plugin that registers its own Twig extension.  Head over to <a href="https://pluginfactory.io/" rel="nofollow">https://pluginfactory.io/</a> and check the "Twig Extensions" option to have it generate the boilerplate code for you.</p>

<p>100% untested, but in your <code>PluginNameTwigExtension.php</code> file, add a <code>getGlobals()</code> method that does something like this:</p>

<pre><code>public function getGlobals()
{
    $criteria = craft()-&gt;elements-&gt;getCriteria(ElementType::User);
    $criteria-&gt;admin = true;
    $user = $criteria-&gt;first();

    return array('adminAccount' =&gt; $user);
}
</code></pre>

<p>Then every template should have a global <code>adminAccount</code> variable available to it that's a <a href="https://craftcms.com/classreference/models/UserModel" rel="nofollow">UserModel</a> object, so you can do things like <code>{{ adminAccount.firstName }}</code>.</p>

CC BY-SA 3.0
2016-05-08T09:26:12.053Z
Just tested it and it works like a charm ! 
Exactly like you said.

Thank you a lot.
Kitefr
CC BY-SA 3.0
2016-05-08T00:22:31.773Z
2016-05-08T00:22:31.773Z
Brad Bell
<p>Like I am stating in the title, I am using the free Craft Personal edition which is perfect for my portfolio.</p>

<p>I already (and obviously) have an account and only one.
So I cannot have access to <code>craft.users</code> but this account already have my Full Name and Email written in it and I want to use those in my website without having to redo them as Globals.</p>

<p>Is that possible in Craft Personal?</p>

<p>I thought I will be able to use <code>{{ account }}</code> but it is only accessible in the Registration Form as I can see.</p>

<p>Thanks for your time.</p>

<users>
Get user data in Craft CMS Personal edition
# Get user data in Craft CMS Personal edition

(Asked by: username_0 on 2016-05-07)

Like I am stating in the title, I am using the free Craft Personal edition which is perfect for my portfolio.

I already (and obviously) have an account and only one.
So I cannot have access to `craft.users` but this account already have my Full Name and Email written in it and I want to use those in my website without having to redo them as Globals.

Is that possible in Craft Personal?

I thought I will be able to use `{{ account }}` but it is only accessible in the Registration Form as I can see.

Thanks for your time.

**Tags:** users

---

## 1 answers

### Answer by username_1 on 2016-05-08. Score: 1 | Accepted answer

Should be possible with a simple plugin that registers its own Twig extension.  Head over to https://pluginfactory.io/ and check the "Twig Extensions" option to have it generate the boilerplate code for you.
100% untested, but in your PluginNameTwigExtension.php file, add a getGlobals() method that does something like this:
public function getGlobals()
{
    $criteria = craft()->elements->getCriteria(ElementType::User);
    $criteria->admin = true;
    $user = $criteria->first();

    return array('adminAccount' => $user);
}

Then every template should have a global adminAccount variable available to it that's a UserModel object, so you can do things like {{ adminAccount.firstName }}.

> **Comments:**
> **username_0**: Just tested it and it works like a charm !  Exactly like you said.  Thank you a lot.  

---

