# Leader

## Program ID

MetraPipeline.MTLeaderPlugin.1

## Description

The leader plug-in iterates through the child sessions looking for the session where UserRole = chair. It then sets the LeaderName property in the parent equal to the user of the UserName of the child session.

The leader plug-in uses the value from the first child session where UserRole = chair. The expectation is that the metered data only has one leader.

## Required Input Properties

None.

## Required Output Properties

Tag name | Value type | Description
LeaderName | String | The name of the leader of the conference. If a leader is not found in the child sessions, the value will be an empty string.

## Additional Configuration Tags

Tag name | Value type | Description
UserName | String | The name of the current user in the child session.
UserRole | String | The role of the user in the child session. For example, chair is the user role that indicates who the conference leader is.
Chair | String | The name of the chair of the conference. This is usually a metered property.
ServiceID | ID | The service name of the child sessions that the plug-in will use to extract the leader name. If ServiceID is missing, all child sessions will be processed.

## Configuration Example

<configdata>
<UserName>UserName</UserName>
<UserRole>UserRole</UserRole>
<LeaderName>LeaderName</LeaderName>
<chair>Chair</chair>
<ServiceID ptype="ID">metratech.com/audioconfconnection</ServiceID>
</configdata>