I have an automated process that creates filters for teams. From time to time users may be added or removed from those filters and the automation works just fine.
However if any user is "deleted" elsewhere, the filter permission remains with a type of user-unknown.
class JiraSharePermissionDto {
id: 182920
type: user-unknown
user: null
view: true
edit: true
}
and any subsequent call to addFilterPermission or deleteFilterPermission on that filter fails:
errorMessages":["User: 'JIRAUSER60241' does not exist.","User: 'JIRAUSER60240' does not exist."...
the filter is frozen. cannot add or delete permissions from it.
Any ideas? besides deleting and re-creating the filter...