Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to generate src token #1410

Open
yashgandhi-32 opened this issue Oct 4, 2024 · 2 comments
Open

How to generate src token #1410

yashgandhi-32 opened this issue Oct 4, 2024 · 2 comments

Comments

@yashgandhi-32
Copy link

I have assigned my apps permissions from teams dev portal ...

now I am suing this API to generate token

https://login.microsoftonline.com/{tenant}/oauth2/v2.0/token

with

scope: https://graph.microsoft.com/.default
grant_type: client_credentials
client_id: ''
client_secret: ''

when I use
https://graph.microsoft.com/v1.0/teams/{chatid}/members but I get this error

{
    "error": {
        "code": "Forbidden",
        "message": "Missing role permissions on the request. API requires one of 'TeamMember.Read.All, TeamMember.ReadWrite.All, Group.Read.All, Group.ReadWrite.All, TeamMember.Read.Group, Member.Read.Group'. Roles on the request ''. Resource specific consent grants on the request ''.",
        "innerError": {
            "date": "2024-10-04T08:08:43",
            "request-id": "335dc012-b09b-4d3-ec390f141b53",
            "client-request-id": "335dc012-b09b-4daed3-ec390f141b53"
        }
    }
}

See below screenshot its already assigned ... can you help me how to make it work or I am doing something wrong ?

Screenshot 2024-10-04 at 3 07 30 PM
@Nivedipa-MSFT
Copy link
Contributor

@yashgandhi-32 - Thanks for reporting your issue. We will check this and update you soon.

@yashgandhi-32
Copy link
Author

yashgandhi-32 commented Oct 7, 2024

@Nivedipa-MSFT Any update ? Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants