-
- Expert
- Posts: 172
- Liked: 20 times
- Joined: Oct 03, 2016 12:41 pm
- Full Name: Robert
- Contact:
Response time from Microsoft Teams API access
Hi
I requested access to the new teams api at Microsoft using their provided form at the 06-21-2022 and have not heard back yet from MS.
Have any of you requested access, and if so, what was the response time from Microsoft?
Regards
Robert
I requested access to the new teams api at Microsoft using their provided form at the 06-21-2022 and have not heard back yet from MS.
Have any of you requested access, and if so, what was the response time from Microsoft?
Regards
Robert
-
- Veeam Software
- Posts: 3195
- Liked: 774 times
- Joined: Oct 21, 2011 11:22 am
- Full Name: Polina Vasileva
- Contact:
Re: Response time from Microsoft Teams API access
Hi Robert,
From what we know, it usually takes up to 2 weeks to get the approval, but apparently, the waiting time might be even longer.
Frankly speaking, I think that they are now overloaded with requests...
From what we know, it usually takes up to 2 weeks to get the approval, but apparently, the waiting time might be even longer.
Frankly speaking, I think that they are now overloaded with requests...
-
- Product Manager
- Posts: 9848
- Liked: 2607 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: Response time from Microsoft Teams API access
Hi Robert
After reading Microsoft's docs, probably you won't get a mail notification.
According to the docs, you would have to use GraphAPI to verify if the API access was granted.
https://docs.microsoft.com/en-us/graph/ ... ected-apis
Fabian
After reading Microsoft's docs, probably you won't get a mail notification.
According to the docs, you would have to use GraphAPI to verify if the API access was granted.
https://docs.microsoft.com/en-us/graph/ ... ected-apis
ThanksTo verify whether your request has been approved, test your application access on the next applicable Monday. If we have additional questions about the request, we will contact the email specified in the form.
Fabian
Product Management Analyst @ Veeam Software
-
- Novice
- Posts: 7
- Liked: 3 times
- Joined: Jan 03, 2016 5:54 pm
- Full Name: Bruce M
- Location: New Zealand
- Contact:
Re: Response time from Microsoft Teams API access
But how to test your application access?
Do we have to install the 6a (?) upgrade and hope it works?
Do we have to install the 6a (?) upgrade and hope it works?
-
- Product Manager
- Posts: 9848
- Liked: 2607 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: Response time from Microsoft Teams API access
We will discuss it internally. I have an idea, but need to check it first.
Thanks
Fabian
Thanks
Fabian
Product Management Analyst @ Veeam Software
-
- Expert
- Posts: 172
- Liked: 20 times
- Joined: Oct 03, 2016 12:41 pm
- Full Name: Robert
- Contact:
-
- Product Manager
- Posts: 9848
- Liked: 2607 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: Response time from Microsoft Teams API access
Hi Robert
I have put together some commands. The output is not optimized. I'll check if I can optimize the output, but to verify if you have access, the commands will work. Let me know if it works in your environment.
Requirements
You must provide the following information:
Commands
Access has been granted
If your App have been granted access to the protected API's, the command will either show you an empty line because the first Teams has no messages or it will list the available messages. If you want to check other teams, you can use Get-MgGroup to get the ID of the Team and us this ID in Get-MgTeamChannelMessage to query the messages.
Access has not been granted yet
If you don't have access to the protected API's, you will see the following error as documented in our KB:
I have put together some commands. The output is not optimized. I'll check if I can optimize the output, but to verify if you have access, the commands will work. Let me know if it works in your environment.
Requirements
You must provide the following information:
- TenantId = Your Tenant ID
- AppId = Your VB365 App ID. API Permission ChannelMessage.Read.All must be assigned in AzureAD
- CertThumbprint = Thumbprint from the VB365 Authentication certificate. You can find it in VB365, windows cert manager or in the app configuration in your Azure AD admin console.
Commands
Code: Select all
#Configuration
$TenantId = "Your Tenant ID"
$AppId = "Your VB365 App ID"
$CertThumbprint = "Thumbprint from the VB365 Authentification certificate"
#Connect to GraphAPI
$Cert=Get-ChildItem Cert:\LocalMachine\My\$CertThumbprint
Connect-MgGraph -AppId $AppId -TenantId $TenantId -Certificate $Cert
#Get all M365 group (unified group) and use the ID to query a list of messages for a single team (second one, first one is the default group without a team attached)
$Teams = Get-MgGroup -Filter "groupTypes/any(c:c eq 'Unified')" | select id
Get-MgTeamChannelMessage -TeamID $Teams.Id[1]
If your App have been granted access to the protected API's, the command will either show you an empty line because the first Teams has no messages or it will list the available messages. If you want to check other teams, you can use Get-MgGroup to get the ID of the Team and us this ID in Get-MgTeamChannelMessage to query the messages.
Access has not been granted yet
If you don't have access to the protected API's, you will see the following error as documented in our KB:
Product Management Analyst @ Veeam Software
-
- Expert
- Posts: 172
- Liked: 20 times
- Joined: Oct 03, 2016 12:41 pm
- Full Name: Robert
- Contact:
Re: Response time from Microsoft Teams API access
Thank you.
I can see, i do not have access yet.
Welcome To Microsoft Graph!
Get-MgTeamChannelMessage : UnknownError
At C:\Users\admin-rv\Desktop\Check access to Teams API.ps1:9 char:1
+ Get-MgTeamChannelMessage -TeamID $Teams.Id
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: ({ TeamId = 0adb...-fab901e741be }:<>f__AnonymousType7`1) [Get-MgTeamC
hannelMessage_Get3], RestException`1
+ FullyQualifiedErrorId : NotFound,Microsoft.Graph.PowerShell.Cmdlets.GetMgTeamChannelMessage_Get3
I can see, i do not have access yet.
Welcome To Microsoft Graph!
Get-MgTeamChannelMessage : UnknownError
At C:\Users\admin-rv\Desktop\Check access to Teams API.ps1:9 char:1
+ Get-MgTeamChannelMessage -TeamID $Teams.Id
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: ({ TeamId = 0adb...-fab901e741be }:<>f__AnonymousType7`1) [Get-MgTeamC
hannelMessage_Get3], RestException`1
+ FullyQualifiedErrorId : NotFound,Microsoft.Graph.PowerShell.Cmdlets.GetMgTeamChannelMessage_Get3
-
- Product Manager
- Posts: 9848
- Liked: 2607 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: Response time from Microsoft Teams API access
Hi Robert
The output "Get-MgTeamChannelMessage : UnknownError" doesn't look the same as in my example. Can you run the commands one by one in a power shell session?
Probably there is some issue in the Get-MgGroup | select id -First 1 command. Do you see the Groups if you use the command after you have connected to Microsoft Graph.
You should see the following message if you are blocked from using the API:
The output "Get-MgTeamChannelMessage : UnknownError" doesn't look the same as in my example. Can you run the commands one by one in a power shell session?
Probably there is some issue in the Get-MgGroup | select id -First 1 command. Do you see the Groups if you use the command after you have connected to Microsoft Graph.
You should see the following message if you are blocked from using the API:
Get-MgTeamChannelMessage : Invoked API requires Protected API access in application-only context when not using
Resource Specific Consent. Visit https://docs.microsoft.com/en-us/graph/ ... ected-apis for more details.
Product Management Analyst @ Veeam Software
-
- Expert
- Posts: 172
- Liked: 20 times
- Joined: Oct 03, 2016 12:41 pm
- Full Name: Robert
- Contact:
Re: Response time from Microsoft Teams API access
You are right.
So i have access.
Code: Select all
Welcome To Microsoft Graph!
PS C:\WINDOWS\system32> $Teams = Get-MgGroup | select id -First 1
PS C:\WINDOWS\system32> Get-MgTeamChannelMessage -TeamID $Teams.Id
Get-MgTeamChannelMessage : UnknownError
At line:1 char:1
+ Get-MgTeamChannelMessage -TeamID $Teams.Id
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: ({ TeamId = 0adb...-fab901e741be }:<>f__AnonymousType7`1) [Get-MgTeamC
hannelMessage_Get3], RestException`1
+ FullyQualifiedErrorId : NotFound,Microsoft.Graph.PowerShell.Cmdlets.GetMgTeamChannelMessage_Get3
PS C:\WINDOWS\system32> Get-MgGroup | select id -First 1
Id
--
0adb5665-b3a1-461c-a562-fab901e741be
PS C:\WINDOWS\system32> Get-MgGroup | select id -First 5
Id
--
0adb5665-b3a1-461c-a562-fab901e741be
0ef6ee68-387d-40eb-aa03-3b5c9b70774b
12626729-9a72-4361-b328-9e51ffb29a82
141ebfb9-d704-42a8-bcd6-4e39c6c242b1
2168a895-831e-4f4d-9df4-43d9ffabaffa
-
- Product Manager
- Posts: 9848
- Liked: 2607 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: Response time from Microsoft Teams API access
Get-MgGroup is not a protected API. But it's good to see, that the Teams group can be queried.
We need to test it with Get-MgTeamChannelMessage, which is a protected API.
Can you try this command with a random value?
We need to test it with Get-MgTeamChannelMessage, which is a protected API.
Can you try this command with a random value?
And please make sure, that you have added the required permission to the App in AzureAD:Get-MgTeamChannelMessage -TeamID 46464654654654654
Code: Select all
ChannelMessage.Read.All
Product Management Analyst @ Veeam Software
-
- Expert
- Posts: 172
- Liked: 20 times
- Joined: Oct 03, 2016 12:41 pm
- Full Name: Robert
- Contact:
Re: Response time from Microsoft Teams API access
Using a fiktive valid GUID throughs InvalidOperation
Code: Select all
PS C:\Users\admin-rv\Desktop> Get-MgTeamChannelMessage -TeamID 512856435165486485
Get-MgTeamChannelMessage : teamId needs to be a valid GUID.
At line:1 char:1
+ Get-MgTeamChannelMessage -TeamID 512856435165486485
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: ({ TeamId = 512856435165486485 }:<>f__AnonymousType7`1) [Get-MgTeamCha
nnelMessage_Get3], RestException`1
+ FullyQualifiedErrorId : BadRequest,Microsoft.Graph.PowerShell.Cmdlets.GetMgTeamChannelMessage_Get3
PS C:\Users\admin-rv\Desktop> Get-MgTeamChannelMessage -TeamID 38ed0365-8891-4d56-82f1-102256a927d9
Get-MgTeamChannelMessage : UnknownError
At line:1 char:1
+ Get-MgTeamChannelMessage -TeamID 38ed0365-8891-4d56-82f1-102256a927d9
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: ({ TeamId = 38ed...-102256a927d9 }:<>f__AnonymousType7`1) [Get-MgTeamC
hannelMessage_Get3], RestException`1
+ FullyQualifiedErrorId : NotFound,Microsoft.Graph.PowerShell.Cmdlets.GetMgTeamChannelMessage_Get3
-
- Expert
- Posts: 172
- Liked: 20 times
- Joined: Oct 03, 2016 12:41 pm
- Full Name: Robert
- Contact:
Re: Response time from Microsoft Teams API access
PS C:\Users\admin-rv\Desktop> Get-MgGroup | select id -First 1
Code: Select all
Id
--
0adb5665-b3a1-461c-a562-fab901e741be
PS C:\Users\admin-rv\Desktop> Get-MgTeamChannelMessage -TeamID 0adb5665-b3a1-461c-a562-fab901e741be
Get-MgTeamChannelMessage : UnknownError
At line:1 char:1
+ Get-MgTeamChannelMessage -TeamID 0adb5665-b3a1-461c-a562-fab901e741be
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: ({ TeamId = 0adb...-fab901e741be }:<>f__AnonymousType7`1) [Get-MgTeamC
hannelMessage_Get3], RestException`1
+ FullyQualifiedErrorId : NotFound,Microsoft.Graph.PowerShell.Cmdlets.GetMgTeamChannelMessage_Get3
-
- Product Manager
- Posts: 9848
- Liked: 2607 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: Response time from Microsoft Teams API access
This one looks good to me. It says that the GUID is wrong. But the command works. So you can query the API.
The other message "Unknown" seems strange to me. Could be another unrelated issue.
If you have given the APP the permission ChannelMessage.Read.All, then it seems to me that access to the protected API has been granted. If not, you would have received the API notification from my screenshot even with the wrong fictive GUID.
Product Management Analyst @ Veeam Software
-
- Novice
- Posts: 7
- Liked: 5 times
- Joined: Nov 25, 2015 2:19 am
- Full Name: Marcus Rowell
- Contact:
Re: Response time from Microsoft Teams API access
I think the "Get-MgTeamChannelMessage : UnknownError" error is because "Get-MgGroup" returns All Groups and not just those that are associated with a Team.
I ran "Get-MgGroup" by itself and it was the 5th returned ID that worked with "Get-MgTeamChannelMessage -TeamID"
I ran "Get-MgGroup" by itself and it was the 5th returned ID that worked with "Get-MgTeamChannelMessage -TeamID"
-
- Product Manager
- Posts: 9848
- Liked: 2607 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: Response time from Microsoft Teams API access
Thanks Marcus.
That makes sense.
That makes sense.
Product Management Analyst @ Veeam Software
-
- Expert
- Posts: 172
- Liked: 20 times
- Joined: Oct 03, 2016 12:41 pm
- Full Name: Robert
- Contact:
Re: Response time from Microsoft Teams API access
Looks as @mrowell are right:
Get-MgTeamChannelMessage -TeamID 5c2df604-1539-4ddc-b220-b8fb06421e4c
Id ChatId CreatedDateTime DeletedDateTime Etag Importance LastEditedDateTime LastModifiedDateTime Locale MessageType ReplyToId Subj
ect
-- ------ --------------- --------------- ---- ---------- ------------------ -------------------- ------ ----------- --------- ----
1615799453693 15-03-2021 09:10:53 1615799453693 normal 15-03-2021 09:10:53 en-us message
1615799351341 15-03-2021 09:09:11 1615799351341 normal 15-03-2021 09:09:11 en-us message
1611757998118 27-01-2021 14:33:18 1611757998118 normal 27-01-2021 14:33:18 en-us message
Get-MgTeamChannelMessage -TeamID 5c2df604-1539-4ddc-b220-b8fb06421e4c
Id ChatId CreatedDateTime DeletedDateTime Etag Importance LastEditedDateTime LastModifiedDateTime Locale MessageType ReplyToId Subj
ect
-- ------ --------------- --------------- ---- ---------- ------------------ -------------------- ------ ----------- --------- ----
1615799453693 15-03-2021 09:10:53 1615799453693 normal 15-03-2021 09:10:53 en-us message
1615799351341 15-03-2021 09:09:11 1615799351341 normal 15-03-2021 09:09:11 en-us message
1611757998118 27-01-2021 14:33:18 1611757998118 normal 27-01-2021 14:33:18 en-us message
-
- Product Manager
- Posts: 9848
- Liked: 2607 times
- Joined: May 13, 2017 4:51 pm
- Full Name: Fabian K.
- Location: Switzerland
- Contact:
Re: Response time from Microsoft Teams API access
Thanks.
I updated the commands to only list M365 Groups (Unified Groups).
I updated the commands to only list M365 Groups (Unified Groups).
Product Management Analyst @ Veeam Software
Who is online
Users browsing this forum: No registered users and 9 guests