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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / List users in Dynamics...
Power Automate
Unanswered

List users in Dynamics 365 field security profile

(0) ShareShare
ReportReport
Posted on by 4

Hi,

 

Does anybody have a way of listing users (i.e. in order to send them an SMS and email) who are members of a particular Dynamics 365 field security profile? I'm new to flow and struggling to see any obvious way to do this but it feels like it should be possible. 

 

Thanks,

Becky

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @beckyjc 

     

    See below steps will explain how to retrive users from a specified field security level. 

     

    Here I am using a manual trigger. Then intialised a variable called SecurityProfile. This is used later for storing the GUID of specified field level security group. Here my group is called 'Special Group'. Next step we need to use the List records. Here I am using the filter query. Please see below steps.

     

    sec1.png

     

    Next step we need a loop to extract the value of the 'Special Group' Id (GUID). See below.

     

    sec2.png

     

    Next we need to retrieve all the users falls under the above field security group. Here I am using FetchXML query and I am mapping the above GUID for the filter. You can use ODATA for the filter as well. I am taking the easy route here 🙂

     

    sec3.png

     

    Next we need to pass the results. Here I am using Parse JSON.

     

    sec4.png

     

    Below is the JSON Schema.

    {
    "type": "object",
    "properties": {
    "@@odata.context": {
    "type": "string"
    },
    "value": {
    "type": "array",
    "items": {
    "type": "object",
    "properties": {
    "@@odata.etag": {
    "type": "string"
    },
    "fullname": {
    "type": "string"
    },
    "_businessunitid_value": {
    "type": "string"
    },
    "systemuserid": {
    "type": "string"
    },
    "ownerid": {
    "type": "string"
    }
    },
    "required": [
    "@@odata.etag",
    "fullname",
    "_businessunitid_value",
    "systemuserid",
    "ownerid"
    ]
    }
    }
    }
    }
     
    sec5.png

    Next we need another loop to extract the user details. Here I am using a compose step to display Fullname of the users. In your case you need to find the email and add another step called email. Another method is collect all the emails of the users and send one email to all users.

     

    Hope it make sense. If you need any more help please let me know.

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

     

    Thanks

     

  • beckyjc Profile Picture
    4 on at

    Hi @abm ,

     

    Thank you for the detailed response, this looks to be exactly what I needed.  Will try it ASAP and report back!

     

    Thanks again,

    Becky

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @beckyjc 

     

    If you need any further help in this please let me know.

     

    Thanks

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

Forum hierarchy changes are complete!

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
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard