web
You’re offline. This is a read only version of the page.
close
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

UserID Permission Set

(0) ShareShare
ReportReport
Posted on by 161

Hi

I am using the UserID in AL to default a user task to the current logged in user.

It works for me as I am an admin however it doesn't work for my users as they only have D365 Basic and Sales permission sets.

If I provide them with D365 Full access it works but for obvious reasons I don't want to do this.

What is the best permission set or what permissions do I need to add to my permission set to make this work for all users.

Thanks for any help in advance.

Neil.

I have the same question (0)
  • Suggested answer
    MahGah Profile Picture
    15,529 on at

    Hi

    I wish it was a clear guideline for that. My only suggestion is to record the permission set. See the following post. Basically create a new permission set. Then record and do the task you want to do and let system record it and create a permission set for you. This way you can use it as a starting point (for example to add those to Sales permission).

    https://yzhums.com/10068/

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,105 Moderator on at

    That is dependent of what objects is actually in use in the AL code that you want to run.

    You can f.ex. give your objects indirect permissions meaning that the data can be accessible in AL even though they are not directly access able  for the user that is logged on.

  • Suggested answer
    YUN ZHU Profile Picture
    95,307 Super User 2025 Season 2 on at

    Hi, If you are developing a feature, have you tried adding Permissions Property in your object?

    https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/properties/devenv-permissions-property

    Also, if this is a standard feature, it needs to be available to the user on the page, so a new permission set needs to be created. For example, using the Record feature.

    Hope this will help.

    Thanks.

    ZHU

  • Verified answer
    Neil Phelan Profile Picture
    161 on at

    Zhu

    I regenerated my permission set in AL for the extension and it seems to have solved the problem,  Thanks for the point in the right direction.

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

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 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans