# Create account without login Rancher UI

**URL:** <https://forums.suse.com/t/create-account-without-login-rancher-ui/40808>\
**Category:** SUSE Rancher Prime\
**Created:** [May 30, 2023, 10:05am UTC](https://forums.suse.com/t/create-account-without-login-rancher-ui/40808 "2023-05-30T10:05:28Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![hungn17](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/hungn17/32/10235_2.png) [@hungn17](https://forums.suse.com/u/hungn17)\
**Post date:** [May 30, 2023, 10:05am UTC](https://forums.suse.com/t/create-account-without-login-rancher-ui/40808/1 "2023-05-30T10:05:28Z")

</div>

Hi , i am new to Rancher , i wonder if any solution to create a user account in Rancher without login web UI. For example , can i create account with a scripts or a yaml file ? (use command kubectl apply -f )

Thanks.

---

<div class="post-metadata">

**Author:** ![ofeked](https://avatars.discourse-cdn.com/v4/letter/o/45deac/32.png) [@ofeked](https://forums.suse.com/u/ofeked)\
**Post date:** [June 2, 2023, 10:12pm UTC](https://forums.suse.com/t/create-account-without-login-rancher-ui/40808/2 "2023-06-02T22:12:14Z")

</div>

At my work, I create everything related to a rancher with Yaml (CRD of cattle/rancher).  
With users we handle; differently, we don’t create users. We connect Rancher to SSO (Azure in our case), so we don’t need to deal with the creation of users/passwords.  
Do you want to create local users, I assume?

---

<div class="post-metadata">

**Author:** ![hungn17](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/hungn17/32/10235_2.png) [@hungn17](https://forums.suse.com/u/hungn17)\
**Post date:** [June 3, 2023, 3:02pm UTC](https://forums.suse.com/t/create-account-without-login-rancher-ui/40808/3 "2023-06-03T15:02:07Z")

</div>

Yes, i want to create users local.

---

<div class="post-metadata">

**Author:** ![aevenot](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/aevenot/32/9123_2.png) [@aevenot](https://forums.suse.com/u/aevenot)\
**Post date:** [June 5, 2023, 2:03pm UTC](https://forums.suse.com/t/create-account-without-login-rancher-ui/40808/4 "2023-06-05T14:03:02Z")

</div>

If you have a valid token, you can use Terraform.

I recently created a clusters with local users for a demo and it works quite well.

[https://registry.terraform.io/providers/rancher/rancher2/latest/docs/resources/user](https://registry.terraform.io/providers/rancher/rancher2/latest/docs/resources/user)

---

<div class="post-metadata">

**Author:** ![hungn17](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/hungn17/32/10235_2.png) [@hungn17](https://forums.suse.com/u/hungn17)\
**Post date:** [June 8, 2023, 4:28am UTC](https://forums.suse.com/t/create-account-without-login-rancher-ui/40808/5 "2023-06-08T04:28:57Z")

</div>

Yeah , thanks for your reply . I think i’ve figured out a way to do it , you can use Rancher CLI .

---

<div class="post-metadata">

**Author:** ![WatsonZayd](https://avatars.discourse-cdn.com/v4/letter/w/ba9def/32.png) [@WatsonZayd](https://forums.suse.com/u/WatsonZayd)\
**Post date:** [July 24, 2023, 12:17pm UTC](https://forums.suse.com/t/create-account-without-login-rancher-ui/40808/6 "2023-07-24T12:17:14Z")

</div>

> [@hungn17](#):
>
> Hi , i am new to Rancher , i wonder if any solution to create a user account in Rancher without login web UI. For example , can i create account with a scripts or a yaml file ? (use command kubectl apply -f )

I am also eager to explore its capabilities and optimize my workflow. Currently, I’m seeking a solution to create user accounts in Rancher without having to log in through the web UI manually. I wonder if there is a way to achieve this by using scripts or a YAML file and applying it with the “kubectl apply -f” command.

---

<div class="post-metadata">

**Author:** ![hungn17](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/hungn17/32/10235_2.png) [@hungn17](https://forums.suse.com/u/hungn17)\
**Post date:** [July 25, 2023, 3:05am UTC](https://forums.suse.com/t/create-account-without-login-rancher-ui/40808/7 "2023-07-25T03:05:03Z")

</div>

Yes ,you can create a local User with yaml file using “kubectl apply -f” command , this only work when you run the command on local cluster where the Rancher app is running.

---

<div class="post-metadata">

**Author:** ![jalenkylian](https://avatars.discourse-cdn.com/v4/letter/j/ebca7d/32.png) [@jalenkylian](https://forums.suse.com/u/jalenkylian)\
**Post date:** [September 26, 2023, 10:26am UTC](https://forums.suse.com/t/create-account-without-login-rancher-ui/40808/9 "2023-09-26T10:26:24Z")

</div>

I’ve a problem while trying to register nodes. I’ve followed the official documentation, and I’m using the `rancher-agent` container to register my nodes. However[,](https://focusautodetailing.com/) every time I run the command, I get an error message saying, “Failed to register node: connection refused.”

---

<div class="post-metadata">

**Author:** ![Elisa\_Leo](https://sea2.discourse-cdn.com/flex022/user_avatar/forums.suse.com/elisa_leo/32/11484_2.png) [@Elisa\_Leo](https://forums.suse.com/u/Elisa_Leo)\
**Post date:** [August 23, 2024, 7:25pm UTC](https://forums.suse.com/t/create-account-without-login-rancher-ui/40808/10 "2024-08-23T19:25:40Z")

</div>

How is this important to me?

> > > > >
