Importing and Exporting Resource Profiles
To share resource profiles among tenants, you can export a resource profile to a resource profile package file. This allows for another tenant to then import that resource profile package. Resource profiles may be imported and exported as resource packages. The package is a zip file containing the following:
-
manifest.json – manifest file with meta-data.
-
script.js.
-
icon.png (optional).
-
password-profile.json – password profile (optional).
There are no directory structures in the zip. The text files in resource profile packages (scripts, manifest, and password profile) are in UTF-8 encoding. Line endings may be either CRLF or LF.
Other file names are permitted but must start with the names given above. For example: manifest-PAN311.json.
The documentation below provides steps to perform the following:
Importing Resource Profile Packages
You can import previously exported resource profile packages. Things to keep in mind before you import a profile package:
-
If the resource profile package has a password profile, you are given the option to ignore it and specify an existing password profile. You can create a new profile based on the information in the package or manually create a password profile.
-
The information in the package is used to initialize a form for creating the new resource profile. You can edit the resource profile before saving it.
To import a resource profile package
-
In the Admin Portal, navigate to Settings > Resources > Resource Profiles > Import Profile. A warning message appears to ensure the package is from a trusted source.
-
Click Continue and proceed to import profile package. Click Browse to add your package and assign Password Complexity Profile to custom or package settings:
-
The details of the imported package will appear. Confirm all the fields to the package are correct or amend as needed. Click Save.
Exporting Resource Profile Packages
You can export a resource profile package from an existing resource profile. The .zip contains the following:
-
manifest-.json.
-
script-.js.
-
icon-.png.
-
password-profile-.json.
There is no directory structure. When exporting, you can export the optional icon and password profile components of the package.
To export a resource profile package
-
In the Admin Portal, navigate to Settings > Resources > Resource Profiles. Choose a profile and navigate to Actions and choose Export.
-
An Export Profile window appears. Name the package and check off if you want to include the Password Profile and Logo.
-
Click Export and you will see the downloaded package in your Downloads folder.
Updating Existing Resource Profiles from a Resource Profile Package
After you have imported a resource profile package, at a later date you might want to update it with the "latest copy" of the resource profile (for example, the script may have been updated).
To update a resource profile package
-
In the Admin Portal, navigate to Settings > Resources > Resource Profiles. Choose a profile to update. Navigate to Actions and choose Update.
-
Here, you can update the:
-
Script.
-
Manifest.
-
Icon.
-
Password Profile.
-
-
Make changes as needed and click Update. The profile package will appear. Confirm all the components are correct and click Save.
Manually Creating and Modifying Resource Profile Packages
You can manually create and modify resource profile packages. To create a resource package manually:
-
Write a script and create a manifest file (using the editor of your choice).
-
Create an icon (optional).
-
Create Resource Profile Package password profile file.
-
Create a zip with these files. The zip is a resource profile package that can be imported.
Resource Profile Package Manifest
The manifest file is JSON as in the following example:
{
"Identifier": "Pan311",
"Name": "PAN 311",
"Description": "{ \"en\": \"PAN 311 Description\", \"es\": \"Descripcion de PAN 311\" }",
"Author": "Rich Smith",
"Version": "4.4.4.4"
}
Resource Profile Package Password Profile
The optional password profile allows a package developer to suggest the settings for a password profile that works for the device (example: has particular device requirements for password generation).
When importing a package, you can ignore the password profile in the package in favor of your own password profile.
The password profile is JSON as in the following example:
{
"Name": "dev2 profile",
"Description": "dev2 password profile",
"MinimumPasswordLength": 6,
"MaximumPasswordLength": 8,
"AtLeastOneLowercase": true,
"AtLeastOneUppercase": true,
"AtLeastOneDigit": true,
"ConsecutiveCharRepeatAllowed": true,
"AtLeastOneSpecial": true,
"MaximumCharOccurrenceCount": 2,
"SpecialCharSet": "!$%&()*+,-./:;<=>?[\\]^_{|}~",
"FirstCharacterType": "AnyChar",
"LastCharacterType:" "AnyChar",
"MinimumAlphabeticCharacterCount": 2,
"MinimumNonAlphabeticCharacterCount": 2
}
Using Sets with Resource Profiles
You can add sets to resource profiles. For more information on managing sets, see Managing Sets.