---
title: getConnection(String profileName)
slug: isac/admin-guide/android/getconnectionstring-profilename
docTags: 
createdAt: 2026-07-23T05:01:25.257Z
---

Obtains the JSON profile for a VPN profile created with the function [createConnection(String jsonProfile)](docId\:LUWLKIP6na8XkQpluAl0y).

### Syntax:

String getConnection(String profileName)

### Parameters:

The profileName is the name of the VPN profile.

### Returns:

This method returns the VPN profile for the name specified. This profile must be added by the same caller. This method could return null.
