I am trying to create users with a few fields (name, phone number, email, and participant number) using the API.
I found this topic: https://forum.osticket.com/d/90539-how-to-create-a-user-via-api however the link within redirects to these forums, but incorrectly. Moreover, when I try to search (for anything) it just gives me an "Oops something went wrong error"

Cheers
m.

There is no create use API in osTicket. There is a open ticket api.

To bulk create users you would use the user import option on the Users tab.

Thanks for letting me know.
Is there a batch delete option for users?

Do you want to get rid of all of them or just a few?

If you want to get rid of all of them you can simply drop the contents of the ost_users table (note: I'm not at my installation to check but I think that there is also a user_emails table or something similar that you would also want to nuke.)

If you want to get rid of select ones then you can use the Uses tab, select them, and under More (gear) there should be a delete option.

Yeah strangely, the only option under the More dropdown is "Add to organisation". My install must be borked.

More likely you do not have delete permissions on your account.

Will check this. I am the sole user at the moment (just testing things) so I must have missed that option when assigning myself as an agent.

Thanks

edit: Had a look and have full access and full permissions? Bizarre

Maybe you are running an old version?

Log into the system and go to Admin panel.
Click on Agents.
Click on your Account
Click on the Permissions tab
Click on the Users Tab.

13 days later

Am on the latest version, and have settings exactly as you've suggested. Just not there. Will be installing 1.11 when it is stable so will see how that transition affects this issue.

Write a Reply...