For the datasource query part - Possibly, the reg-ex used to access the datasource does not match with the available data sources in the cluster, otherwise you may have seen 403 ERROR on those parts as well.
[
{
"resource": {
"name": ""\b(?:datsource1|datasource2|datasource3\b",
"type": "DATASOURCE"
},
"action": "READ|WRITE"
}
]
I notice that :
(1) The closing bracket is missing in the regex expression and there is pair of "" in the beginning - i.e ""\b(?:datsource1|datasource2|datasource3\b" - rather than "\b(?:datsource1|datasource2|datasource3)\b", If its not a copy/paste mistake then that could be the reason that you are not able to query/see them.
(2) The 1st datasource name is misspelled [ i.e datsource1 (missing 'a'), rather datasource1 - You may have your data source named like that but I am just pointing in case its not ]
I think, correcting the reg-ex could fix this issue. Once you fix it you should go to SQL TAB and see what all datasource are available to query.
Additionally, the Admin user has full access to the cluster/READ/WRITE/etc, and below are the permission for the admin user - You can use it as a reference to define the permissions as required by leveraging the regex as per your requirement -
{
"name": "admin",
"permissions": [
{
"resourceAction": {
"resource": {
"name": ".*",