With Export-NAVAppPermissionSet a Permission Set can be exported.
But is there a cmdlet or another way to import a Permission Set from a file that has been exported with the above cmdlet?
Hi,
Please try to use XMLPort 9171:Import/Export Permission Sets
XMLPorts 9171, 9172 produce csv files and usually need to be used together.
The powershell commandlet produces an xml file and can only export one permission set per call, even though the file structure would allow for any number of permission sets. The commandlet appears to be intended solely for the purpose of creating an extension. Therefore no corresponding import-NavAppPermissionSet exists.
@Kowa: I prefer not to use a navx file, I'd like to export/import Permission only and also only specific Permission Sets. @kalyankandimalla: the standard XML ports are limited (all sets or 1 only) and have to be run from inside NAV (or the Invoke Cmdlet has to be used).
Seems I have to build a custom XML port and use the Invoke Cmdlet to run it from PowerShell.
Hi, But also using Xmlports (like 9171 )will generate xml file. We need to select required format while saving.But as you mentioned maybe customizing xmlport will help.
Answers
https://msdn.microsoft.com/de-de/library/mt600264(v=nav.90).aspx
https://community.dynamics.com/nav/b/navvideos/archive/2016/07/05/how-do-i-include-a-permission-set-in-a-microsoft-dynamics-nav-extension
Please try to use XMLPort 9171:Import/Export Permission Sets
XMLPorts 9171, 9172 produce csv files and usually need to be used together.
The powershell commandlet produces an xml file and can only export one permission set per call, even though the file structure would allow for any number of permission sets. The commandlet appears to be intended solely for the purpose of creating an extension. Therefore no corresponding import-NavAppPermissionSet exists.
@kalyankandimalla: the standard XML ports are limited (all sets or 1 only) and have to be run from inside NAV (or the Invoke Cmdlet has to be used).
Seems I have to build a custom XML port and use the Invoke Cmdlet to run it from PowerShell.
https://msdn.microsoft.com/en-us/library/mt584152(v=nav.90).aspx
Ok. Clear. But then it would be nice to have 1 cmdlet's like:
Export-NAVPermissionSet
Import-NAVPermissionSet