How to create a user in User doctype using a web form when submitted a unregistered user or guest

i created a web form and a unregistered user should fill the web form then a new user should be created in User doctype when tried getting this error

Hy @Vinay1

please check User Permissions And read the document

https://docs.erpnext.com/docs/user/manual/en/user-permissions

Thank You!

@Vinay1 have you got the solution for this?
“How to create a user in User doctype using a web form when submitted an unregistered user or guest” I also need a solution for this

hi @Sri_Bhargav
i don’t think i solved it, but when a webform is submitted then a record is added in the doctype to which webform is associated
so you can use doctype events like validate, on_submit to get the user filled details in the doctype event and then create a new user using server side script