Top

Company users

Respondida

Comentários

4 comentários

  • 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
    Ações de comentário 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
    Ações de comentário Permalink
  • Vincent BAILLEAU

    Hi Pedro,

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

    Regards

    Vincent

     

    0
    Ações de comentário 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
    Ações de comentário Permalink

Por favor, entrar para comentar.

Ainda não consegue encontrar o que você precisa?

  • Contate-nos

    Você tem alguma pergunta sobre o Rainbow? Deixe-nos uma mensagem para obter mais informações.

    Contato
  • Pergunte à Comunidade

    Você precisa de ajuda? Faça suas perguntas na Comunidade para obter respostas de outros usuários do Rainbow.

    Enviar mensagem