Hi, Ive followed a guide and setup a chatbot on a Sharepoint site. https://learn.microsoft.com/sv-se/microsoft-copilot-studio/configuration-end-user-authentication?source=recommendations
then this guide to crate app: https://learn.microsoft.com/sv-se/microsoft-copilot-studio/configuration-authentication-azure-ad
the chat is up and running on Sharepoint but i get this error when i login
Request Id: abb03d95-dbe3-4a21-a9d2-f562ceae1200 Correlation Id: 5233a813-dc06-44a1-8069-0d86334359e9 Timestamp: 2023-12-13T11:05:02Z Message: AADSTS650057: Invalid resource. The client has requested access to a resource which is not listed in the requested permissions in the client's application registration. Client app ID: 75eb0b10-414a-4be7-82ba-b833ada2b221(Cheffelo Chat Companion (Power Virtual Agents)). Resource value from request: https://management.core.windows.net/. Resource app ID: 797f4846-ba00-4fd7-ba43-dac1f8f63013. List of valid resources from app registration: 00000003-0000-0000-c000-000000000000, 00000002-0000-0000-c000-000000000000.
also
{ "error": { "code": "ServiceError", "message": "Missing required query string parameter: code. Url = https://europe.token.botframework.com/.auth/web/redirect?error=access_denied&error_description=AADSTS650057%3a+Invalid+resource.+The+client+has+requested+access+to+a+resource+which+is+not+listed+in+the+requested+permissions+in+the+client%27s+application+registration.+Client+app+ID%3a+75eb0b10-414a-4be7-82ba-b833ada2b221(Cheffelo+Chat+Companion+(Power+Virtual+Agents)).+Resource+value+from+request%3a+https%3a%2f%2fmanagement.core.windows.net%2f.+Resource+app+ID%3a+797f4846-ba00-4fd7-ba43-dac1f8f63013.+List+of+valid+resources+from+app+registration%3a+00000003-0000-0000-c000-000000000000%2c+00000002-0000-0000-c000-000000000000.+Trace+ID%3a+c0c29387-5db3-4c51-b636-4dff95553e00+Correlation+ID%3a+2f0eb19d-cff7-4207-b8f6-dba6a7bd463e+Timestamp%3a+2023-12-14+09%3a52%3a31Z&state=5adfe5ce23f547ff830b2da7f7f2dbad" } }
no idea, i deleted the bot entirely and created a new one, it might have been that the wrong app id was inputed in first bot and/or the client secret value, i dont know exactly.
Can you share what was the fix for your issue and provide the solution for the benefit of other community members?
You can flag me on a different post with your follow-up question.
Thanks!
Thank you, i will save and try this also, i got my setup to work and it seems to read our internal sharepoint, finds guides etc and present them, not the best but progress.
my question is this now, is this chatgpt behing or do i need to setup something more, cause my bot cant give answers to anything else, like 1+1 or current date, it says cant understand.
So question is, this isnt chatgpt out of the box bot, what is the next step to do here to make it smarter?
We have a new sample for a SharePoint component that supports SSO. The sample includes detailed instructions on the required configuration as well. See if this helps.
CopilotStudioSamples/SharePointSSOComponent at master · microsoft/CopilotStudioSamples (github.com)