Skip to content

carrera328/profile_permissionset_utility

Repository files navigation

Profile-Permissionset-Utility

Profile-Permissionset-Utility is a Node.JS CLI tool that manipulates profiles and permissionsets programatically based on CSV input. Profiles/permissionsets loaded into the tool are converted to JSON, manipulated in JavaScript then converted back to XML.

Dependencies

  • Node v15.2.0 or greater

Installation

git clone https://github.com/AtriumAI/profile_utility
cd profile_utility
npm install

How to use

  • open the root directory of the application in a terminal
  • run a command structured in the following format:
  • npm run start -- required boilerplate node command
  • --csv ./PATH/TO/VALID/CSV/FILE path to csv that the tool will take as input.
  • --file ./PATH/TO/VALID/"PROFILE-PERMISSIONSET" path to profile/permissionset to be modified, file name should be wrapped in quotes, original file will not be edited, only the copy generated.
  • --layoutAssignment command that invokes layoutAssignment functionality CANNOT BE USED IN CONJUNCTION WITH THE recordTypeAssignment COMMAND
  • --recordTypeAssignment command that invokes recordTypeAssignment functionality CANNOT BE USED IN CONJUNCTION WITH THE recordTypeAssignment COMMAND

layout assignment example:
npm run start -- --csv ./layout-assignment-sample.csv --file ./"Sales Admin.profile" --layoutAssignment

recordType assignment:
npm run start -- --csv ./recordtype-assignment-sample.csv --file ./"Sample.permissionset" --recordTypeAssignment

The --csv,--file and either the --layoutAssignment or (but not both) --recordTypeAssignment flags are required, the tool will not work without these arguments

results are generated in results folder

About

personal copy of profile_utility

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published