Messenger chatroom participants

Resource type: messengerchatroomparticipants

Reads out the chatroom participants from a messenger chatroom. Response includes id, full name and accept status of the users. Specify the chatroom uid as resource id. You can read out the uid of the chatrooms with the call read messenger room.

Parameters: None

Example:

...
"actions":[
    {
        "actionid": "urn:onoffice-de-ns:smart:2.5:smartml:action:read",
        "resourceid": "171955",
        "identifier": "",
        "resourcetype": "messengerchatroomparticipants",
        "parameters": []
    }
]
...

Response:

Parameters:

  • id
    INTEGER. uid of the user.
  • type
    STRING. Always null in this call.
  • name
    STRING. User name from enterprise (First name + surname).
  • accept
    STRING. Accepted status of the contact request between two users, the calling user of the API call and the user in the chat room. If the status is accept, direct messages between the users are possible.

    Possible values: null (with itself, or if request was not initiated or was rejected).
    imwaiting: User waits for response of a self-initiated contact request.
    waiting: Contact request of another user waiting for answer.
    accept: User has accepted the contact request.

{
    "status": {
        "code": 200,
        "errorcode": 0,
        "message": "OK"
    },
    "response": {
        "results": [
            {
                "actionid": "urn:onoffice-de-ns:smart:2.5:smartml:action:read",
                "resourceid": "171955",
                "resourcetype": "messengerchatroomparticipants",
                "cacheable": false,
                "identifier": "",
                "data": {
                    "meta": {
                        "cntabsolute": 3
                    },
                    "records": [
                        {
                            "id": 134075,
                            "type": null,
                            "elements": {
                                "name": "Peter  Lustig",
                                "accept": "accept"
                            }
                        },
                        {
                            "id": 159961,
                            "type": null,
                            "elements": {
                                "name": "Robert hkjhjkh hjkhkj",
                                "accept": null
                            }
                        },
                        {
                            "id": 167089,
                            "type": null,
                            "elements": {
                                "name": "Paul Probe",
                                "accept": "accept"
                            }
                        }
                    ]
                },
                "status": {
                    "errorcode": 0,
                    "message": "OK"
                }
            }
        ]
    }
}