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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Generate automated access report for business central

(5) ShareShare
ReportReport
Posted on by 70
Hello,
 
We have a requirement to provide an automated report from Business Central with the permission of all the users.
Has anyone done this before?
 
In Power Automate, I do not see any corresponding actions.
 
Many thanks!
Amrita
I have the same question (0)
  • Suggested answer
    Sumit Singh Profile Picture
    11,757 Super User 2026 Season 1 on at
     
    As per my knowledge, the standard Power Automate connector cannot access user permissions. One of the solution is to create a custom API.
    Custom API
    1.  In Business Central (Developer Task):
        Developer can create a simple API page in AL code. This page will expose a list of users and their assigned permission sets.
    2.  In Power Automate (Your Task):
           Trigger: Use a `Recurrence` trigger to run the Flow on a schedule.
           Action: Use the standard Business Central `Find records` action to call the new custom API   endpoint.
           Report: Format the data using `Create HTML Table` or `Create CSV Table`.
           Deliver: Use the Outlook connector's `Send an email` action to send the report.
    Official Microsoft Links
    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-develop-custom-api
     
    Please verify it in case it helps.
  • Suggested answer
    YUN ZHU Profile Picture
    99,086 Super User 2026 Season 1 on at
    The standard Power Automate only supports outputting data or attachments and cannot automatically generate a report.
    The simplest solution is to customize a small codeunit, set it to the Job Queue, and send it regularly.
    Hope the following can give you some hints.
     
    Thanks.
    ZHU
  • Suggested answer
    Suresh Kulla Profile Picture
    50,269 Super User 2026 Season 1 on at
    You can access the data in Power Automate only using the API, and we don't have a standard API for users or permission sets. If you need a file or Excel document, you can create it in AL instead of using Power Automate. Create a report or codeunit, export the Users and their permission sets, and then add the code to send an email or export to a file. Schedule this using Job Queue.
  • AmritaSengupta Profile Picture
    70 on at
     
    I am taking a look, but I don't see a table/entity holding the user base of the tenant.
    Which is what we want to retrieve in the report - Users + corresponding permissions + assigned licenses.
     
    Does BC exposes this table/entity for API development?
  • Suggested answer
    YUN ZHU Profile Picture
    99,086 Super User 2026 Season 1 on at
    As far as I know, the standard does not expose this information. You need to create a custom API to display this content before you can get it in Power Automate.
     
    Thanks
    ZHU
  • Suggested answer
    Chavda Dharmendra Profile Picture
    1,000 Super User 2026 Season 1 on at
    Hello Amrita,
     
    You require to create custom report and API in business central.
     
    Once you created report then call API from Power automate to capture data.
     
    Sample code for retrieved Report into API with base64.
     
        [ServiceEnabled]
        [Scope('Cloud')]
        procedure Exportreport(): Text
        var
            SalesInvoiceReport: Report "Sales Invoice Report";
            TempBlob: Codeunit "Temp Blob";
            Base64Convert: Codeunit "Base64 Convert";
            FileText: Text;
            MyOutStream: OutStream;
            MyInStream: InStream;
        begin
            //SetTableView and SetReqFilter if required
            TempBlob.CreateOutStream(MyOutStream);
            SalesInvoiceReport.SetTableView(Rec);
            SalesInvoiceReport.UseRequestPage(false);
            SalesInvoiceReport.SaveAs('', ReportFormat::Pdf, MyOutStream);
            TempBlob.CreateInStream(MyInStream);
            FileText := Base64Convert.ToBase64(MyInStream);
            exit(FileText);
        end;
  • Suggested answer
    Pallavi Phade Profile Picture
    5,420 Super User 2026 Season 1 on at
    Namaste Amrita , 
     

    RCA

    Since Permission Sets and Users are system base tables (not company-specific), they cannot be exposed directly as APIs.

    Solution

    You need to create a script that pushes this data into custom tables, which can then be published as APIs and consumed as required.

    Whenever a new user, permission, or permission set is added, the script should capture and update it in the custom tables.

    If this approach works for you, you can proceed with the implementation, and in case you face any challenges with the scripting, please let us know

    If you find this helpful , please verify the answer 
     
    Regards 
    Pallavi Phade 
     
     
  • Gerardo Rentería García Profile Picture
    25,555 Most Valuable Professional on at
    Hi
    You could look into other solutions like PowerbI by accessing OData or APIs, or a native report by accessing the corresponding tables.
    Best
    GR
  • Suggested answer
    Sahan Hasitha Profile Picture
    2,683 on at
    Use Power BI (Optional)
    If you prefer dashboards, you can:
         Create a Power BI report based on the User and User Permission tables.
         Schedule refreshes to provide up-to-date permission information.( 8 time )

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,993 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,116 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans