Skip to main content

Notifications

Copilot Studio - Bot Administration
Unanswered

Virtual Agent for Sharepoint help with authentication

(0) ShareShare
ReportReport
Posted on by

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" } }

  • Angerfist Profile Picture
    Angerfist 13 on at
    Re: Virtual Agent for Sharepoint help with authentication

     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.

  • adilei Profile Picture
    adilei on at
    Re: Virtual Agent for Sharepoint help with authentication

    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!

  • Angerfist Profile Picture
    Angerfist 13 on at
    Re: Virtual Agent for Sharepoint help with authentication

    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?

  • adilei Profile Picture
    adilei on at
    Re: Virtual Agent for Sharepoint help with authentication

    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)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,304

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,703

Leaderboard

Featured topics