public void setUserPermissions(Map<String, Set<ObjectPermission.Type>> userPermissions) {
        this.userPermissions = userPermissions;
    }
Replaces the current map of user permissions with the given map, which
must map user ID to its corresponding set of granted permissions. If a
user has no permissions, its ID must not be present as a key in the map.

@param userPermissions
    The map which must replace the currently-stored map of permissions.
guacamole/src/main/java/org/apache/guacamole/rest/permission/APIPermissionSet.java