# Create a Discourse user from a Zapier request

**URL:** <https://meta.discourse.org/t/create-a-discourse-user-from-a-zapier-request/283570>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [October 26, 2023, 6:39pm UTC](https://meta.discourse.org/t/create-a-discourse-user-from-a-zapier-request/283570 "2023-10-26T18:39:39Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [October 26, 2023, 10:30pm UTC](https://meta.discourse.org/t/create-a-discourse-user-from-a-zapier-request/283570/5 "2023-10-26T22:30:23Z")

</div>

I suspect the issue is related to how you are structuring the request on Zapier. Using the Webhooks by Zapier action, try this:

Select “POST” as the Event. Then:

URL: `<https://forum.example.com/users.json>`

Payload Type: “json”

Data:

- `name`: \<user’s full name\> (shown as required in the docs, but should be ok to omit)
- `username`: the user’s username
- `email`: the user’s email
- `password`: some password that meets your site’s requirement
- `active`: `"true"` (in quotes)
- `approved`: `"true"` (in quotes)

Fill in the Headers section to add your `Api-Key` and `Api-Username` (I’ve only tried this with `system` as the Api-Username.

Use the default values for all other sections.

Here are a couple screenshots with fake data:

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/9/7/b972c1fdd147cd246503e633d8952bf0b45d63fe.png)

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/1/c/a1c04a9e06870a81f9cf8ef3c47bff32b838d788.png)

That’s working for me. If it’s not working, the other thing to check is to make sure the `invite only` setting isn’t enabled on your Discourse site.

To see if it would work, I also just made a custom integration with the Zapier CLI that creates new users. If Discourse want, that action could be added to the official Discourse Zap. I’m not sure that adding an action to create users is a priority though. I don’t think it’s been requested as often as things like creating an invite or suspending a user.

Notes from further testing:

- the Payload Type can be set to either “json” or “form”. To set custom fields with the request, the payload type needs to be set to “form”.

- Multiselect custom fields are a bit of an issue. Zapier won’t allow duplicate key names in the Data section. It should be possible to set Multiselect custom fields with the Zapier “Custom Request” action.

- the values of the `active` and `approved` parameters do not need to be wrapped in quotation marks.

---

_[View the full topic](https://meta.discourse.org/t/create-a-discourse-user-from-a-zapier-request/283570)._
