@Path("users")
    public DirectoryResource<User, APIUser> getUserDirectoryResource()
            throws GuacamoleException {
        return userDirectoryResourceFactory.create(authenticatedUser,
                userContext, userContext.getUserDirectory());
    }
Returns a new resource which represents the User Directory contained
within the UserContext exposed by this UserContextResource.

@return
    A new resource which represents the User Directory contained within
    the UserContext exposed by this UserContextResource.

@throws GuacamoleException
    If an error occurs while retrieving the User Directory.
guacamole/src/main/java/org/apache/guacamole/rest/session/UserContextResource.java