Skip to main content

Notifications

Business Central forum
Answered

Permission to only shows the purchase orders created by user himself

Posted on by 59

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

Categories:
  • Suggested answer
    Tech-Lucky Profile Picture
    Tech-Lucky 794 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 59 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 68,142 Super User 2024 Season 2 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 32,744 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 794 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

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Dynamics 365 Community Newsletter - August 2024

Catch up on the latest D365 Community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,142 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 227,979 Super User 2024 Season 2

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans