def get_permission_name(cls, permission_type):
        """
        Retrieve permission name from the provided permission type.

        :rtype: ``str``
        """
        split = permission_type.split("_")
        if len(split) < 2:
            raise ValueError(
                f"The permission_type {permission_type} doesn't have an underscore."
            )

        # Special case for PACK_VIEWS_INDEX_HEALTH
        if permission_type == PermissionType.PACK_VIEWS_INDEX_HEALTH:
            split = permission_type.split("_", 1)
            return split[1]

        return split[-1]

        Retrieve permission name from the provided permission type.

        :rtype: ``str``
        
st2common/st2common/rbac/types.py