# Username and SID format for students enrollments

**URL:** <https://ask.gibbonedu.org/t/username-and-sid-format-for-students-enrollments/2261>\
**Category:** Administration\
**Created:** [September 19, 2019, 1:35pm UTC](https://ask.gibbonedu.org/t/username-and-sid-format-for-students-enrollments/2261 "2019-09-19T13:35:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ghulamabbas92](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/g/e0b2c6/32.png) [@ghulamabbas92](https://ask.gibbonedu.org/u/ghulamabbas92)\
**Post date:** [September 19, 2019, 1:35pm UTC](https://ask.gibbonedu.org/t/username-and-sid-format-for-students-enrollments/2261/1 "2019-09-19T13:35:33Z")

</div>

Respected Gibbon Community,  
When we enroll a student from application form it generates usernames as alphabets from name. How we can set it so that it generates numeric usernames as 3536 in a incremental order e.g 3537,3538.

Looking forward.

Best Regards,  
Ghulam Abbas

---

<div class="post-metadata">

**Author:** ![ross](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/ross/32/8_2.png) [@ross](https://ask.gibbonedu.org/u/ross)\
**Post date:** [September 19, 2019, 11:09pm UTC](https://ask.gibbonedu.org/t/username-and-sid-format-for-students-enrollments/2261/2 "2019-09-19T23:09:53Z")

</div>

Morning Ghulam,

If you look under Admin \> User Admin \> Application Form Settings, you’ll see a username format under Acceptance Options. This does not currently do what you want, but you could look at tinkering with the code to get the behaviour that you want. It partly exists, as it does an auto-increment on usernames, but not on blank usernames.

Good luck, and let us know how you get on!

Ross

---

<div class="post-metadata">

**Author:** ![sandra](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/sandra/32/5_2.png) [@sandra](https://ask.gibbonedu.org/u/sandra)\
**Post date:** [September 19, 2019, 11:45pm UTC](https://ask.gibbonedu.org/t/username-and-sid-format-for-students-enrollments/2261/3 "2019-09-19T23:45:35Z")

</div>

This does exist : ) One of the many areas I’ve tinkered with in recent versions. Check the User Admin \> User Settings page to edit and creat username formats, which have an incremental numeric option. This allows usernames to be generated in the Add User and Edit Application Form pages. Hope this helps!

---

<div class="post-metadata">

**Author:** ![ghulamabbas92](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/g/e0b2c6/32.png) [@ghulamabbas92](https://ask.gibbonedu.org/u/ghulamabbas92)\
**Post date:** [September 20, 2019, 3:29am UTC](https://ask.gibbonedu.org/t/username-and-sid-format-for-students-enrollments/2261/4 "2019-09-20T03:29:29Z")

</div>

Thanks respected admin , and Sandra . It worked . When we set username format from Manage User Settings. But it is not setting Student IDs. We want same student IDs as of Username in 4 Digit Numeric Values.

---

<div class="post-metadata">

**Author:** ![sandra](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/sandra/32/5_2.png) [@sandra](https://ask.gibbonedu.org/u/sandra)\
**Post date:** [October 2, 2019, 2:39am UTC](https://ask.gibbonedu.org/t/username-and-sid-format-for-students-enrollments/2261/5 "2019-10-02T02:39:49Z")

</div>

Hi Ghulam,

There is currently no way to force student IDs to be the same as usernames, but there are now fields in the Application Form Edit page to enter these prior to accepting an application form, so in this case your admissions person could generate the username and copy it into the Student ID field next to it, in the Office Only section of the application form page. Hope this helps!

---

<div class="post-metadata">

**Author:** ![betasystem101](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/b/c89c15/32.png) [@betasystem101](https://ask.gibbonedu.org/u/betasystem101)\
**Post date:** [October 6, 2019, 1:25pm UTC](https://ask.gibbonedu.org/t/username-and-sid-format-for-students-enrollments/2261/6 "2019-10-06T13:25:58Z")

</div>

hi, does this also apply to usernames from public registrations? and not via the application forms?

---

<div class="post-metadata">

**Author:** ![betasystem101](https://ask.gibbonedu.org/letter_avatar_proxy/v4/letter/b/c89c15/32.png) [@betasystem101](https://ask.gibbonedu.org/u/betasystem101)\
**Post date:** [October 7, 2019, 8:38am UTC](https://ask.gibbonedu.org/t/username-and-sid-format-for-students-enrollments/2261/7 "2019-10-07T08:38:12Z")

</div>

Hello I still couldnt find this feature applicable for accounts added via the online public registration.

I have tried activating registrations via student application form. Here is my setup under the Manage User settings:  
roles: Student  
is default? : Yes  
Numeric: Yes  
starting value: 00001  
number of digits: 5  
increment by: 1

This setup can generated usernames such as “johndoe00001” but for tjhe Parent username. The student username stays at “johndoe”. What I am trying to achieve is the opposite, I wish that the student usernames are in johndoe00001 format and the parents will have the johndoe username. How can I achieve this? Thank you soo much  
However, numbers generated in the usernames are onluy

---

<div class="post-metadata">

**Author:** ![sandra](https://ask.gibbonedu.org/user_avatar/ask.gibbonedu.org/sandra/32/5_2.png) [@sandra](https://ask.gibbonedu.org/u/sandra)\
**Post date:** [October 8, 2019, 3:00am UTC](https://ask.gibbonedu.org/t/username-and-sid-format-for-students-enrollments/2261/8 "2019-10-08T03:00:50Z")

</div>

Hi Betasystem101,

The public registration form allows users to select their own username, therefore it doesn’t generate usernames for them. Are you looking to re-generate them via Edit User, after the user has been approved?
