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 :
Small and medium business | Business Central, N...
Suggested Answer

Limit permissions to see only its own entries

(0) ShareShare
ReportReport
Posted on by 372

Hello,

I need to set up "permission set" so that each user (employee/purchaser) can (read/write) only its own Purchase Invoice records and not from other collogues. Based on "Purchaser code" and/or "assigne to" fields on Purchase documents (purchase invoice, posted purchase invoice, purchase order and purchase quote)

In permission, when doing filtering per entry, how can I set to be @=current user (or what is the syntax?) 

I have lot of users, and trying to avoid having for each user its own permission set due to filtering per hardcoded value.

Thank you,

Kind regards

I have the same question (0)
  • Suggested answer
    Vaishnavi J Profile Picture
    3,064 on at

    Hi Hrvoje Kusulja 

    1. You need to create copy of permission sets which is given to those employee/Purchaser.

    2. Then add this security filter in respective table

    pastedimage1658139230810v1.png

    pastedimage1658139036151v2.png

    3.Above is the example where I have given the Purchaser Code must be vaishnavi only that time it would give Read, Write, Modify permission otherwise no. And then assign this permission set to that user.

    4. Please note if your employee or Purchase has super permission or any other permission sets which has full access on these table then you must remove that since it will override your new permission sets.

    If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much

  • KTA Profile Picture
    1,200 on at

    You can use security filter base on purchaser code on permissions. If you want to do it by code, you would have to use function USERID.

  • Hrvoje Kusulja Profile Picture
    372 on at

    Tx, but i do not plan to create for each user its own permission set. Pleas advise how can I use Field Filter for current user? Thank you

  • Hrvoje Kusulja Profile Picture
    372 on at

    Please advise how can I use Field Filter for current user using USERID ? Thank you

  • Suggested answer
    Binesh Profile Picture
    7,885 on at

    You can customize the page extension if the Security filter not works for you.

    See the below reference,

    trigger OnOpenPage()
        begin
            FilterGroup(2);
            SetRange("Assigned User Id", UserId);
            FilterGroup(0);
        End

  • Hrvoje Kusulja Profile Picture
    372 on at

    ah, ok, so without AL code and custom extension it is not possible to enter some syntax in filter column?

  • Suggested answer
    Binesh Profile Picture
    7,885 on at

    Yes, as per your needs.

  • Suggested answer
    YUN ZHU Profile Picture
    96,041 Super User 2025 Season 2 on at

    Hi, hope the following helps as well.

    https://yzhums.com/8417/

    https://yzhums.com/8427/

    Thanks.

    ZHU

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,585

#2
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 780 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 712 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans