web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Using Connectors
Unanswered

Crm instance does not have security roles defined for you.

(0) ShareShare
ReportReport
Posted on by 5

Hi, I´m trying to create a flow executing when updating a Dynamics CRM opportunity.

I can connect to our CRM 365 instance in the trigger, but when the flow runs I get this error:

OUTPUTS
  • Headers
    { "Pragma": "no-cache", "x-ms-request-id": "e6e4789b-67b0-48ef-ac5b-427856f8e18c", "Cache-Control": "no-cache", "Date": "Fri, 09 Dec 2016 21:35:29 GMT", "Set-Cookie": "ARRAffinity=60399012fd538cc9e9434dab83cc998989a70dd2f847ebc7117eb704b9c942d6;Path=/;Domain=127.0.0.1", "Server": "Microsoft-IIS/8.0,Microsoft-HTTPAPI/2.0", "X-AspNet-Version": "4.0.30319", "X-Powered-By": "ASP.NET", "Content-Length": "106", "Content-Type": "application/json; charset=utf-8", "Expires": "-1" }
  • Body
    { "status": 401, "message": "Crm instance does not have security roles defined for you.", "source": "127.0.0.1" }

I´m not a CRM guy, but I have enought access in CRM to create and read all opportunities.

Categories:
I have the same question (0)
  • kartikraop Profile Picture
    on at
    Re: Crm instance does not have security roles defined for you.

    Another user reported same error just a few minutes back. We are following up with the CRM connector / service owners to get more details on the root cause and required action if any from the user to fix it. Will share more details as soon as i have it.

  • abm abm Profile Picture
    32,845 Most Valuable Professional on at
    Re: Crm instance does not have security roles defined for you.

    Hi @Osmund,

     

    Can you please check your flow my connections (Top right hand side settings > connections) of your CRM?

     

    Thanks

  • Osmund Profile Picture
    5 on at
    Re: Crm instance does not have security roles defined for you.

    It says I´m connected.

    crm connection.jpg

  • abm abm Profile Picture
    32,845 Most Valuable Professional on at
    Re: Crm instance does not have security roles defined for you.

    Hi @Osmund,

     

    Thanks for your reply. Of course it is connected. Can you do the following:

     

    1. Re-Enter your credentials. I don't think flow allows to do this. Probably you need to recreate your connection again. Try and see if it fails again or not.

     

    2. If Step 1 fails then try a different user credentails.

     

    Thanks

  • Osmund Profile Picture
    5 on at
    Re: Crm instance does not have security roles defined for you.

    Did 1 and 2 and still same issue.

  • abm abm Profile Picture
    32,845 Most Valuable Professional on at
    Re: Crm instance does not have security roles defined for you.

    Hi @Osmund,

     

    Let me try to recreate it. Will update soon.

     

    Thanks

  • abm abm Profile Picture
    32,845 Most Valuable Professional on at
    Re: Crm instance does not have security roles defined for you.

    Hi @Osmund,

     

    Unfortunately I couldn't replicate your issue. Please see below.

     

    My Flow

     

    o1.png

     

    Flow Test Result

     

    =

    o2.png

     

    Also I tried to deactivate one record by close as won. That worked as well.

     

    Thanks

  • dargue Profile Picture
    6 on at
    Re: Crm instance does not have security roles defined for you.
    Hi @Osmund. I am having the same issue. Did you ever get this resolved?

    Thanks
  • Community Power Platform Member Profile Picture
    on at
    Re: Crm instance does not have security roles defined for you.

    I'm having the same issue right now, a week or two ago everything was fine. Does anyone know?

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

Coming soon: forum hierarchy changes

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 544 Moderator

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 482 Super User 2025 Season 2

#3
chiaraalina Profile Picture

chiaraalina 287

Last 30 days Overall leaderboard

Featured topics