@Override
    public UserContext getUserContext(AuthenticatedUser authenticatedUser)
            throws GuacamoleException {

        // Get configurations
        Map<String, GuacamoleConfiguration> configs =
                getAuthorizedConfigurations(authenticatedUser.getCredentials());

        // Return as unauthorized if not authorized to retrieve configs
        if (configs == null)
            return null;

        // Return user context restricted to authorized configs
        return new SimpleUserContext(this, authenticatedUser.getIdentifier(), configs, true);

    }
Returns a Map containing all GuacamoleConfigurations that this user
is authorized to use. The keys of this Map are Strings which
uniquely identify each configuration.

@return
    A Map of all configurations for which this user is authorized.
guacamole-ext/src/main/java/org/apache/guacamole/net/auth/simple/SimpleAuthenticationProvider.java