@salesforce/packaging
    Preparing search index...

    Function profileRewriter

    • Takes a Profile that's been converted from package.xml to json. Filters out all Profile props that are not

      1. used by packaging (ex: ipRanges)
      2. present in the package.xml (ex: ClassAccesses for a class not in the package)
      3. optionally retains the UserLicense prop only if the param is true

      Parameters

      • profileJson: Profile

        json representation of a profile

      • packageXml: PackageMap

        package.xml as json

      • retainUserLicense: boolean = false

        boolean will preserve userLicense if true

      Returns Profile

      Profile