Avoid Security Entities from Migration [OPTIONAL]

Delete user, group, or permission entries from security.json to exclude specific security entities from migration to Artifactory.

After you run the migrator tool with the getconfig option, the migrator tool creates the security.json file inside the folder, <working directory>/migration/nexus-migrator.

The security.json file contains the details of the security entities to be migrated to Artifactory. You can delete the entities that you do not want to be migrated from this list.

You can delete the entity name and the corresponding block from the security.json file to avoid migration of the entity to Artifactory.

📘

Note

If you remove any entity, also remove its reference and any related sections. For example, if you remove a group section, remove that group name from any privileges that reference it.

The password field in the JSON file is base64 encoded. To change the password, enter the base64-encoded value in the password field.

The following example shows a sample security.json file.

{
    "users": [
        {
            "name": "deployment",
            "email": "[email protected]",
            "password": "UGFzc3dvcmRAMTIz",
            "realm": "internal",
            "groups": [
                "readers"
            ]
        },
        {
            "name": "testadmin",
            "email": "[email protected]",
            "password": "UGFzc3dvcmRAMTIz",
            "admin": true,
            "realm": "internal",
            "groups": [
                "readers"
            ]
        },
        {
            "name": "normaluser",
            "email": "[email protected]",
            "password": "UGFzc3dvcmRAMTIz",
            "realm": "internal",
            "groups": [
                "TestPrivRole",
                "readers"
            ]
        }
    ],
    "groups": [
        {
            "name": "TestPrivRole",
            "description": "TestPrivRole"
        },
        {
            "name": "m-8test",
            "description": "test"
        }
    ],
    "permissions": [
        {
            "name": "m-8privtest",
            "includesPattern": "**",
            "principals": {
                "groups": {
                    "m-8test": [
                        "r",
                        "w",
                        "d",
                        "n",
                        "m"
                    ]
                }
            },
            "repositories": [
                "test1"
            ]
        },
        {
            "name": "testcustom",
            "includesPattern": "**",
            "principals": {},
            "repositories": [
                "ANY"
            ]
        }
    ]
}