Top

Company users

Beantwortet

Kommentare

4 Kommentare

  • Vincent BAILLEAU

    Hi Pedro,

    Currently there is no API on Node avaialble to retrieve as admin their company users, but you can work around using directly the REST API ( https://hub.openrainbow.com/api/admin/index.html#operation/GetUsers ) using the save token generated by the NodeJS SDK after connection.

    Regards

    Vincent

    0
    Aktionen für Kommentare Permalink
  • Pedro LAMAS

    It works, thanks
    I have another question about users.
    In NodeJS API there are an event to take the presence of contacts but i cant take the presence of users.
    Are there any method/event to take the presence of my users?

    Thanks in advance.

    0
    Aktionen für Kommentare Permalink
  • Vincent BAILLEAU

    Hi Pedro,

    unfortunately, the user presence is only visible by users in their user network.

    Regards

    Vincent

     

    0
    Aktionen für Kommentare Permalink
  • Vincent BERDER

    Hello,

     

    i added the admin::getAllUsers method in version 1.59.0 :

    * @public
    * @method getAllUsers
    * @instance
    * @description
    * Get all users for a given admin
    * @memberof Admin
    * @async
    * @param {string} format Allows to retrieve more or less user details in response.
    * small: id, loginEmail, firstName, lastName, displayName, companyId, companyName, isTerminated
    * medium: id, loginEmail, firstName, lastName, displayName, jid_im, jid_tel, companyId, companyName, lastUpdateDate, lastAvatarUpdateDate, isTerminated, guestMode
    * full: all user fields
    * @param {number} offset Allow to specify the position of first user to retrieve (first user if not specified). Warning: if offset > total, no results are returned.
    * @param {number} limit Allow to specify the number of users to retrieve (default=100).
    * @param {string} sortField Sort user list based on the given field (default="loginEmail").
    * @return {Promise<Object, ErrorManager>}

    But you still have the presence only for contacts in your roster.

    Regards,

    Vincent.

    0
    Aktionen für Kommentare Permalink

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.

Sie können immer noch nicht finden, was Sie brauchen?

  • Kontaktieren Sie uns

    Haben Sie eine Frage zu Rainbow? Hinterlassen Sie uns eine Nachricht, um weitere Informationen zu erhalten.

    Kontakt
  • Fragen Sie die Gemeinschaft

    Brauchen Sie Hilfe? Stellen Sie Ihre Fragen in der Community, um Antworten von anderen Rainbow-Benutzern zu erhalten.

    Nachricht posten