Online Docs

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.

1
2
3
GET api/teams/owners
--x-appvitygroupId: [GroupId]
--Cookie: graphNodeCookie=[ID]

URL Endpoint

api/teams/owners

Method

GET.

Parameters

See OData Filter syntax.

Request

Header

1
2
3
--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:

1
2
3
4
5
6
7
{
"_id": "[UserID]",
"sourceId": "[SourceID]",
"displayName": "[UserDisplayName]",
"email": "[UserEmail]",
"username": "[UserName]"
}

[SourceID] is ID of user from Microsoft Team.

Example

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
[
{
"_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"
}
]

Comment

Was this article helpful?
Thanks For Your Feedback