Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

Permission to only shows the purchase orders created by user himself

(0) ShareShare
ReportReport
Posted on by 15

Hi,

Person A creates the purchase orders in BC, and put his own Purchaser Code to the related box in that page. I want to arrange a permission which allows him to only see the purchase orders he created, not the other purchase orders created by other users.

Is it possible ?

Thanks in advance,

Best Regards

  • Suggested answer
    Tech-Lucky Profile Picture
    Tech-Lucky 822 on at
    RE: Permission to only shows the purchase orders created by user himself

    I don't think that you can use the security filters dynamically as you want.

    for that, I have a suggestion for customization as follows:

    Step 1.) There is a Field on User Setup >> Salespers./Purch. Code: Fill in the Purchaser Code user-wise.

    Step 2.) Add a Filter of "Salesperson./Purch. Code" in Purchase Order List Page on Open Page Trigger as follow

       trigger OnOpenPage()

       var

           UserSetup: Record "User Setup";

       begin

           UserSetup.Get(UserId);

           FilterGroup(0);

           SetRange("Salespers./Purch. Code", UserSetup."Salespers./Purch. Code");

           FilterGroup(1);

       end;

    Note: Please mark my answer as varified if this was helpful.

  • Oguzhan Gok Profile Picture
    Oguzhan Gok 15 on at
    RE: Permission to only shows the purchase orders created by user himself

    Hi, Thank you for the response. I have one additional question.

    In this scenario, I prepare a permission set for 3 people. All of them will use the same permission set. They all use the purchase orders and they have to see the orders only they have their own code in "Purchaser Code" box. When I add the security filter to purchase order table in the permission set, I have to choose one of them or add all of them, but in this way whether they will see the same orders from the purchaser I choose or they will see all the orders 3 of them created. I tried to put %me but it didnt work. How can I solve it?

    Thanks in advance for the help.

    Best regards,

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 77,981 Super User 2025 Season 1 on at
    RE: Permission to only shows the purchase orders created by user himself

    Hi,  Security Filters is a very good solution because it does not require customization.
    More details: https://yzhums.com/10133/

    If you consider customizing, please refer to the method below.

    How to make some filters mandatory on the list page (users can not change or remove)
    https://yzhums.com/8427/

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 997 Moderator on at
    RE: Permission to only shows the purchase orders created by user himself

    Security filters are the thing to use. Just remember to make sure that at least one of your resources still are available to see all the data in case someone gets sick or leave the company.

  • Verified answer
    Tech-Lucky Profile Picture
    Tech-Lucky 822 on at
    RE: Permission to only shows the purchase orders created by user himself

    You can try Security Filters in Permission Sets: learn.microsoft.com/.../security-filters

    Mark my answer Varified if this was helpful

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans