Get Team Owners
Retrieve the information about the list of team owners. The returns all properties of users who are the owner of the current working team.
GET api/teams/owners
--x-appvitygroupId: [GroupId]
--Cookie: graphNodeCookie=[ID]
URL Endpoint
api/teams/owners
Method
GET.
Parameters
See OData Filter syntax.
Request
Header
--x-appvity-channelId: [ChannelID]
--x-appvity-teamid: [TeamID]
--Cookie: graphNodeCookie=[ID]
Body
No body for this method.
Response
List of owners into current team(or group) with the following schema:
{
"_id": "[UserID]",
"sourceId": "[SourceID]",
"displayName": "[UserDisplayName]",
"email": "[UserEmail]",
"username": "[UserName]"
}
[SourceID] is ID of user from Microsoft Team.
Example
[
{
"_id": "5bce7df753b66e19aaa3e8ad",
"sourceId": "2b22e51a-d62a-49b1-a5f1-0e5123ad7c55",
"displayName": "Cora Rowland",
"email": "cora.rowland@anadea",
"username": "kylachan@anadea.com"
},
{
"_id": "5bce7df753b66e19aaa3e8a0",
"sourceId": "5083cb81-35f4-4abd-ba2d-e7b9965c1f89",
"displayName": "Oliver Neal",
"email": "oliver@anadea",
"username": "oliver@anadea.com"
}
]