# roleEventOccured
Description: Notification after one of the conference participants changes the role (take the podium, leave the podium, etc).
During a role-based conference
Example:
{
"event": "roleEventOccured",
"peerId": "user2@some.server",
"peerDn": "user2",
"role": 3,
"type": 0,
"result": 1,
"broadcast": true,
"confId": "00000351@some.server#vcs",
"method": "event"
}
Parameter description:
confId— Unique communication session identifierpeerId— TrueConf ID unique user identifierpeerDn— User display name.role— Participant’s role:0— without changes1— General2— the conference owner3— the user who requested the podium4— the user who was invited to the podium5— the user who is currently making an audio reply
type— Role change type:0— request1— response2— confirmation3— notification
result— Response to a role change request:0— positive response1— general response2— the role is already taken3— declined by the participant4— the participant did not reply5— the participant has not joined
broadcast— Flag showing whether a user is on the podium.
See also: