@Path("data/{dataSource}")
    public UserContextResource getUserContextResource(
            @PathParam("dataSource") String authProviderIdentifier)
            throws GuacamoleException {

        // Pull UserContext defined by the given auth provider identifier
        UserContext userContext = session.getUserContext(authProviderIdentifier);

        // Return a resource exposing the retrieved UserContext
        return userContextResourceFactory.create(session.getAuthenticatedUser(), userContext);

    }
Retrieves a resource representing the UserContext associated with the
AuthenticationProvider having the given identifier.

@param authProviderIdentifier
    The unique identifier of the AuthenticationProvider associated with
    the UserContext being retrieved.

@return
    A resource representing the UserContext associated with the
    AuthenticationProvider having the given identifier.

@throws GuacamoleException
    If the AuthenticationProvider identifier is invalid.
guacamole/src/main/java/org/apache/guacamole/rest/session/SessionResource.java