docs: function find (client) {
    return function find (realm, options) {
      return new Promise((resolve, reject) => {
        options = options || {};
        const req = {
          auth: {
            bearer: privates.get(client).accessToken
          },
          json: true
        };
  
        if (options.userId) {
          req.url = `${client.baseUrl}/admin/realms/${realm}/users/${options.userId}`;
        } else {
          req.url = `${client.baseUrl}/admin/realms/${realm}/users`;
          req.qs = options;
        }
  
        request(req, (err, resp, body) => {
          if (err) {
            return reject(err);
          }
  
          if (resp.statusCode !== 200) {
            return reject(body);
          }
  
          return resolve(body);
        });
      });
    };
  }