• JMap.User.getOrganizationId

    Returns the currently logged in user's organization, if the server is a JMap Cloud server, otherwise an empty orgnization object.

    Organizations are only defined when connected to a JMap Cloud server instance.

    Returns JOrganization

    Example

    // returns the user's organization
    JMap.User.getOrganization()