AL icon indicating copy to clipboard operation
AL copied to clipboard

How Permission Set XML work

Open RuiningFan opened this issue 8 years ago • 3 comments

  • AL Extension Version: 0.16.19969
  • Server Version: US Dynamics NAV 12.2 (23241)

Hi All,

I'm not quite sure how the Permission Set works in BC. I create some tables and add them into the permission set. When I uploaded them to the production environment. It failed with error "table *** missing permission set". My Permission XML has been create successfully and I could see a new permission set with the role name and extension name. It didn't added into the permission set that I have created. image image

So I am wondering that what steps it usually takes for permission set when we create a new table? Creating a new role in the web client and publish the permission set xml? Why I saw the table missing permission error even I have the permission set xml?

Thank in advance!!

RuiningFan avatar Jul 30 '18 10:07 RuiningFan

Please refer to issue #2977 , it has steps for defining permission set.

rishiaurrishabh avatar Jul 30 '18 16:07 rishiaurrishabh

ObjectType in your xml should be TableData and not Table.
TableData can be assigned Read, Insert, Modify, Delete permissions Table can be assigned only the Execute permission

StanislawStempin avatar Jul 31 '18 10:07 StanislawStempin

Yes, I'm keeping set permission set to table and it always return the same error when I upload the extension. When I switch to tabledata, it all works well.

RuiningFan avatar Aug 07 '18 07:08 RuiningFan