To Integrate Teams with Salesforce. We need to send team’s message notification to user’s & group where cases are beyond TAT.

Danyal Ansar 0 Reputation points
2024-11-15T13:04:11.08+00:00

Purpose : To Integrate Teams with Salesforce. We need to send team’s message notification to user’s & group where cases are beyond TAT.

 

Error which we are getting : Missing role permissions on the request. API requires one of 'Team.ReadBasic.All, TeamSettings.Read.All, TeamSettings.ReadWrite.All'. Roles on the request ''.

 APIError         Code: 403         message: None         error: MainError(additional_data={}, code='Forbidden', details=None, inner_error=InnerError(additional_data={}, client_request_id='c91cfff3-df26-4f57-8982-6c3398be2d04', date=DateTime(2024, 11, 15, 6, 32, 28, tzinfo=Timezone('UTC')), odata_type=None, request_id='2dc17479-3174-499d-aee5-36fcc09cf2b5'), message="Missing role permissions on the request. API requires one of 'Team.ReadBasic.All, TeamSettings.Read.All, TeamSettings.ReadWrite.All'. Roles on the request ''.", target=None)

User's image

We have provided all these permission with admin consent but still getting the same error. The error is stating us to provide this permission. Kindly suggest what further actionable is required from App registration part on Entra Id.

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,449 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,398 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,425 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Goutam Pratti 905 Reputation points Microsoft Vendor
    2024-11-18T10:18:12.0866667+00:00

    Hello @Danyal Ansar :) ,

    Thank you for Reaching out Microsoft Q&A.

    I understand you want to integrate teams with salesforce but you're getting missing role permissions for 'Team.ReadBasic.All, TeamSettings.Read.All, TeamSettings.ReadWrite.All' but you provided permissions for these API's but still you're encountering the error.

    Instead of using Delegated permissions for Team.ReadBasic.All, TeamSettings.Read.All, and TeamSettings.ReadWrite.All, consider using Application permissions and granting Admin Consent.

    Could you confirm which OAuth flow you are using—Client Credentials flow or Authorization Code Grant flow?

    If you are using the Client Credentials flow, you should use Application permissions. If you are using the Authorization Code Grant flow, you should use Delegated permissions.

    Hope this helps. Do let us know if you any further queries.

    Regards,
    Goutam Pratti.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.