07-29-2020 01:55 AM
Hi,
I'm trying to configure Cisco AnyConnect through Google's Enterprise Admin to push profile settings to the app when it starts up. There is a field in which I can enter some code in JSON format to allow me to do this. I'm entering the below, but it isn't working - I suspect there's something wrong with the below code.
{ "“vpn_connection_name”: ” anyconnect ”,": {}, "“vpn_connection_host”: “ portal.anyconnect.com ”,": {} }
Can anyone advise what the issue could be, as the above example profile isn't being pushed into the app when I open it on the Chromebook device.
Thanks.
Solved! Go to Solution.
04-23-2021 01:16 PM
I made an account to reply to this because I had the same problem (and found this as a result). I couldn't find anything in Cisco's documentation to help with the JSON formatting and wasn't really getting anywhere with support, so I just hammered away at it and got it figured out. I'm posting here in the hopes that it helps someone out in the future.
There are 3 ways that I found that you can configure the JSON to get your connection profiles populated. The first of which is as follows, which is good for a single connection profile:
{
"vpn_connection_name": "Portal 1",
"vpn_connection_host": "vpn.anyconnect.com"
}
The second is if you have many connection profiles:
{
"vpn_configuration_list": [
{
"vpn_name": "Portal 1",
"vpn_host": "vpn.anyconnect.com",
"vpn_set_active": true
},
{
"vpn_name": "Portal 2",
"vpn_host": "vpn.anyconnect.com/2"
},
{
"vpn_name": "Portal 3",
"vpn_host": "vpn.anyconnect.com/3"
},
{
"vpn_name": "Portal 4",
"vpn_host": "vpn.anyconnect.com/4"
}
]
}
And lastly, if you have an XML with your connection profiles on the ASA, you can use it as well:
{
"vpn_connection_profile": "Base64 Encoding of your XML"
}
04-23-2021 01:16 PM
I made an account to reply to this because I had the same problem (and found this as a result). I couldn't find anything in Cisco's documentation to help with the JSON formatting and wasn't really getting anywhere with support, so I just hammered away at it and got it figured out. I'm posting here in the hopes that it helps someone out in the future.
There are 3 ways that I found that you can configure the JSON to get your connection profiles populated. The first of which is as follows, which is good for a single connection profile:
{
"vpn_connection_name": "Portal 1",
"vpn_connection_host": "vpn.anyconnect.com"
}
The second is if you have many connection profiles:
{
"vpn_configuration_list": [
{
"vpn_name": "Portal 1",
"vpn_host": "vpn.anyconnect.com",
"vpn_set_active": true
},
{
"vpn_name": "Portal 2",
"vpn_host": "vpn.anyconnect.com/2"
},
{
"vpn_name": "Portal 3",
"vpn_host": "vpn.anyconnect.com/3"
},
{
"vpn_name": "Portal 4",
"vpn_host": "vpn.anyconnect.com/4"
}
]
}
And lastly, if you have an XML with your connection profiles on the ASA, you can use it as well:
{
"vpn_connection_profile": "Base64 Encoding of your XML"
}
04-26-2021 09:23 AM
Thank you - this worked perfectly - I couldn't find the info anywhere else - I even tried a JSON validator to see where I was making mistakes. Thank you for taking the time to post this, appreciated!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide