lib/api/modules/organizations.js
function (orgIdOrSlug, userId, params) {
      var path;
      if (orgIdOrSlug) {
        path = this.constructPath(constants.ORGANIZATIONS, orgIdOrSlug, constants.USERS, userId);
        return this.Core.GET(path);
      } else {
        return this.rejectRequest('Bad Request: An organization id or slug is required.');
      }
    }
function (orgIdOrSlug, userId, params) {
      var path;
      if (orgIdOrSlug) {
        path = this.constructPath(constants.ORGANIZATIONS, orgIdOrSlug, constants.USERS, userId);
        return this.Core.GET(path);
      } else {
        return this.rejectRequest('Bad Request: An organization id or slug is required.');
      }
    }
function ( orgIdOrSlug , userId , params ) { var path ; if ( orgIdOrSlug ) { path = this . constructPath ( constants . ORGANIZATIONS , orgIdOrSlug , constants . USERS , userId ) ; return this . Core . GET ( path ) ; } else { return this . rejectRequest ( 'Bad Request: An organization id or slug is required.' ) ; } }
Get an organizations users or a particular user identified by `userId`
@param  {String|Integer}           orgIdOrSlug A Robin organization id or slug
@param  {String|Integer|undefined} userId      A Robin user id
@param  {Object|undefined}         params      A querystring object
@return {Function}                             A promise
Get an organizations users or a particular user identified by userId