Import Permission Set with Powershell?

mgn
Member Posts: 39
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?
But is there a cmdlet or another way to import a Permission Set from a file that has been exported with the above cmdlet?
0
Answers
-
The permission set automatically becomes part of the .navx file of the extension if you export it to the same folder before you run New-NAVAppPackage there, so the import is already integrated if it's available.
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-extensionKai Kowalewski0 -
Hi,
Please try to use XMLPort 9171:Import/Export Permission Sets0 -
kalyankandimalla wrote: »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.0 -
@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.0 -
@Kowa: I prefer not to use a navx file…
https://msdn.microsoft.com/en-us/library/mt584152(v=nav.90).aspx
Kai Kowalewski0 -
@Kowa: I prefer not to use a navx file…
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
0 -
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.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions