How to generate Permission Sets using the Visual Studio Code for Business Central Extensions

SaranBusiness Central5 years ago10 Views

While developing Business Central Extensions, the Permission Set generation can also done from AL Command Palette itself and this permission will be published along with your AL Extension.

Firstly, we will create an AL Project with Custom Table and Pages.

After creating the necessary AL files, to generate the permissions for those tables and pages, Go to View -> Command Palette (Ctrl+Shift+P).

Check and select for the AL command -> AL:Generate permission set containing current extension objects. Then it will generate a XML File named ‘extensionsPermissionSet.xml’

Once the file is generated, in order to name the Permission Set, set the required ‘RoleID’ and ‘RoleName’ in the Permission xml. Once completed, save the project and publish the extension.

After Successfully publishing the Extension, go to Permission Set in the Business Central and check for the new generated permission.

As you can see in the above image, the Permission Set contains the Role ID and Name defined and also from which Extension Name the file is generated for reference.

Click on the Permissions to view the Objects under the generated permission.

In this way, you can generate Permissions for all the developments done from the VS Code at one go and publish it with the Extension together.

Original Post https://codethecoffee.wordpress.com/2019/09/03/how-to-generate-permission-sets-using-the-visual-studio-code-for-business-central-extensions/

0 Votes: 0 Upvotes, 0 Downvotes (0 Points)

Leave a reply

Join Us
  • X Network2.1K
  • LinkedIn3.8k
  • Bluesky0.5K
Support The Site
Events
March 2025
MTWTFSS
      1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31       
« Feb   Apr »
Follow
Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...