cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1581
Views
2
Helpful
1
Replies

Creating Client VPN users - Authorization zone syntax

ABSMSP
Community Member

Does anyone have a working JSON snippet for POSTs to the Create Network Meraki Auth User endpoint (/networks/{networkId}/merakiAuthUsers) for "Client VPN" type users?

The API reference only lists "ssidNumber": integer , presumably for creating 802.1x users. For the Client VPN, based on the response to the GET call, I am guessing it is "authorizedZone" : [MX's name], but the API doesn't seem to agree with me, as my POST returns "The following required parameters are missing: 'email' and 'authorizations' "

My body looks like this:

{
"email": "[email protected]",
"name": "Test User",
"password": "example password",
"accountType": "Client VPN",
"emailPasswordToUser": true,
"isAdmin": false,
"authorizations": [

{
"authorizedZone": "Main - appliance",
"expiresAt": "Never"
}
]
}
1 Accepted Solution

Accepted Solutions

ABSMSP
Community Member

I have figured out my problem. In my testing, I was only specifying 'Authorization' in my header, and that has not been an issue with any other Meraki endpoint I was interacting with. When I added 'Content-type':'application/json', my function worked as desired.

But for anyone else's reference on creating "Client VPN" users, the "authorizations" parameter is in fact expecting "authorizedZone" with the format of "[your security appliance's name] - appliance"

View solution in original post

1 Reply 1

ABSMSP
Community Member

I have figured out my problem. In my testing, I was only specifying 'Authorization' in my header, and that has not been an issue with any other Meraki endpoint I was interacting with. When I added 'Content-type':'application/json', my function worked as desired.

But for anyone else's reference on creating "Client VPN" users, the "authorizations" parameter is in fact expecting "authorizedZone" with the format of "[your security appliance's name] - appliance"