# userManagement json

**URL:** <https://community.n8n.io/t/usermanagement-json/14308>\
**Category:** Questions\
**Tags:** deployment, user-management\
**Created:** [May 25, 2022, 1:26pm UTC](https://community.n8n.io/t/usermanagement-json/14308 "2022-05-25T13:26:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lublak](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/lublak/32/9258_2.png) [@lublak](https://community.n8n.io/u/lublak)\
**Post date:** [May 25, 2022, 1:26pm UTC](https://community.n8n.io/t/usermanagement-json/14308/1 "2022-05-25T13:26:03Z")

</div>

## Describe the issue/error/question

Currently i try to setup smtp with the json file:

```auto
{
	"protocol": "http",
	"host": "localhost",
	"listen_address": "0.0.0.0",
	"port": 5678,
	"executions": {
		"process": "main",
		"saveDataOnSuccess": "all",
		"saveDataOnError": "all",
		"saveDataManualExecutions": true,
		"pruneData": true,
		"pruneDataMaxAge": 336,
		"pruneDataTimeout": 3600
	},
	"generic": {
		"timezone": "Europe/Berlin"
	},
	"userManagement": {
		"emails": {
			"mode": "smtp",
			"smtp": {
				"host": "some adresss",
				"port": 25,
				"secure": false,
				"auth": {
					"user": "",
					"pass": ""
				},
				"sender": "n8n"
			}
		}
	}
}

```

Yes user and pass should be empty.

## What is the error message (if any)?

But it doesn’t work:  
 ![grafik](https://europe1.discourse-cdn.com/n8n/original/2X/6/6978806f8cef7ffb982425606b599b8c3acf5fe2.png)

## Information on your n8n setup

- **n8n version: 0.178.2**
- **Database you’re using (default: SQLite): postgres (removed in the config file above**
- **Running n8n with the execution process [own(default), main]: main**
- **Running n8n via [Docker, npm, n8n.cloud, desktop app]: npm**

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [May 25, 2022, 4:48pm UTC](https://community.n8n.io/t/usermanagement-json/14308/2 "2022-05-25T16:48:31Z")

</div>

Hey @lublak,

I don’t think we support anon auth, If you pop in a username and password does it work? I think there could also be some issues around unencrypted mail servers that we have a dev ticket opened for as well.

---

<div class="post-metadata">

**Author:** ![lublak](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/lublak/32/9258_2.png) [@lublak](https://community.n8n.io/u/lublak)\
**Post date:** [May 26, 2022, 2:28pm UTC](https://community.n8n.io/t/usermanagement-json/14308/3 "2022-05-26T14:28:47Z")

</div>

Of course, the smpt server has no login data. Therefore this will not work.  
But it works with Send Email:  
[https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.sendemail/](https://docs.n8n.io/integrations/core-nodes/n8n-nodes-base.sendemail/)

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [May 27, 2022, 2:00am UTC](https://community.n8n.io/t/usermanagement-json/14308/4 "2022-05-27T02:00:07Z")

</div>

Hey @lublak,

The node and the user management smtp setup is not the same thing.

By putting in credentials even if it doesn’t work it would confirm quickly if it is just where the field values are missing.

---

<div class="post-metadata">

**Author:** ![lublak](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/lublak/32/9258_2.png) [@lublak](https://community.n8n.io/u/lublak)\
**Post date:** [May 27, 2022, 1:08pm UTC](https://community.n8n.io/t/usermanagement-json/14308/5 "2022-05-27T13:08:27Z")

</div>

![grafik](https://europe1.discourse-cdn.com/n8n/original/2X/3/38f02a491611eca931feb2a08482ce5259de2a6b.png)

If I give the data (even if it is not correct) then it works.  
But then of course I can’t send an e-mail.

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [May 27, 2022, 3:01pm UTC](https://community.n8n.io/t/usermanagement-json/14308/6 "2022-05-27T15:01:20Z")

</div>

That is perfect so it looks like the issue here could be where we don’t support anonymous authentication with the user management feature yet.

---

<div class="post-metadata">

**Author:** ![BCEVE](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/bceve/32/123_2.png) [@BCEVE](https://community.n8n.io/u/BCEVE)\
**Post date:** [June 28, 2022, 5:30am UTC](https://community.n8n.io/t/usermanagement-json/14308/7 "2022-06-28T05:30:27Z")

</div>

Is there a place to find all schema options for a JSON config file?

---

<div class="post-metadata">

**Author:** ![Jon](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jon/32/40174_2.png) [@Jon](https://community.n8n.io/u/Jon)\
**Post date:** [June 28, 2022, 9:32am UTC](https://community.n8n.io/t/usermanagement-json/14308/8 "2022-06-28T09:32:27Z")

</div>

Hey @BCEVE,

Give this a bash: [n8n/schema.ts at master · n8n-io/n8n · GitHub](https://github.com/n8n-io/n8n/blob/master/packages/cli/config/schema.ts)
