Skip to main content

Notifications

Announcements

No record found.

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.

  • Verified answer
    Neil Phelan Profile Picture
    Neil Phelan 161 on at
    RE: UserID Permission Set

    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.

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 75,673 Super User 2024 Season 2 on at
    RE: UserID Permission Set

    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

  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 993 Super User 2024 Season 1 on at
    RE: UserID Permission Set

    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
    MahGah Profile Picture
    MahGah 15,433 on at
    RE: UserID Permission Set

    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/

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

Congratulations 2024 Spotlight Honorees!

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December!

Congratulations to our December super stars! 🥳

Get Started Blogging in the Community

Hosted or syndicated blogging is available! ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,661 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,379 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans