To resolve this issue, If erroneous behavior is detected, get a list of the Principal Identities. In case there are any present that have the same name but different values for role, permission_group, or protected, then the following action needs to be taken:
- See which one of the identities with a given name has the right values for those fields.
- Delete all the Principal Identities with the same name (but different node_id).
- Create again the Principal Identities that were just deleted, using the same certificate_id as it had originally for the given node_id. This time make sure they have the same role (or permission_group) and protected fields as the correct one.
Note:
These steps can be performed before or after migration. Before migration the role field does not exist and only the permission_group and protected fields need to be taken care of. After migration, only the role field and the protected field need to be taken care of.