# setModeratorRole

Description: management of granting moderator rights to any of the participants in the current group conference.

Request example:

{
    "method": "setModeratorRole",
    "requestId" : "1",
    "peerId": "user1@some.server/21412ABF234",
    "moderator": false
}

Response example:

{
    "method": "setModeratorRole",
    "requestId" : "1",
    "result": true
}

Parameter description:

  • peerId - the unique identifier of a user TrueConf ID. It is recommended to use those obtained from the methods: newParticipantInConference, getConferenceParticipants. Applicability:

  • moderator — Flag showing whether a conference participant will be a moderator. It can be as follows:

    • true — the user will receive moderator rights

    • false — the user will not receive moderator rights

  • requestId - a unique request identifier. You can learn more about it here.

See also: