We have a self-service action called "Transfer Ownership". This enables our teams to transfer ownership of codebases / services.
We opted to restrict the user-inputs form so that the new owners drop-down only displays teams which the current user is a member of - to encourage new owners to claim ownership, rather than other teams dropping it on them.
```json
"userInputs": {
"properties": {
"new_owners": {
"type": "string",
"blueprint": "_team",
"dataset": {
"combinator": "or",
"rules": [
{
"property": "$identifier",
"operator": "in",
"value": {
"jqQuery": ".user.team"
}
}
]
}
}
},
},
```
We are interested in extending this
dataset
filter so that, if the current user is a Port admin, we would display all teams as an option in the drop-down.
I'm aware of the new Contextual query rules (https://docs.port.io/search-and-query/#contextual-query-rules), however these do not pass validation rules, so I'm assuming it's not currently supported in this use-case.