# Add New User through Scripting

**URL:** <https://forum.inductiveautomation.com/t/add-new-user-through-scripting/44506>\
**Category:** General Discussion\
**Created:** [March 16, 2021, 3:14am UTC](https://forum.inductiveautomation.com/t/add-new-user-through-scripting/44506 "2021-03-16T03:14:14Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [March 17, 2021, 11:00am UTC](https://forum.inductiveautomation.com/t/add-new-user-through-scripting/44506/8 "2021-03-17T11:00:56Z")

</div>

Copying the same thing a few hours apart won't make things go any faster. Also keep time zones in mind. 😉

addRoleInfo() does not exist. use addRole() or addRoles(). Kathy posted an example in this thread.

> [@Setting user roles when creating a user via script](http://forum.inductiveautomation.com/t/setting-user-roles-when-creating-a-user-via-script/27368/2):
>
> You’re close. Due to technical limitations, some things get accessed differently than others. Here’s the sample script I gave to training: def printResponse(responseList): if len(responseList) \> 0: for response in responseList: print "", response else: print " None" # Make a brand new 'blank' user. Not saved until we, well, save username = event.source.parent.getComponent('Text Field').text user = system.user.getNewUser("", "myAwesomeUser") # Let's fill in…

---

_[View the full topic](https://forum.inductiveautomation.com/t/add-new-user-through-scripting/44506)._
