Error is still present in grafana-7.0.3
The main org is set to have all permissions currently - hope this is ok.
There is one folder and one dashboard for the specific organization N2.
I created a user, removed the main org and he does see nothing. Added the main org again - he only sees anything (and everything), when he switches to main org.
New user where I do not eliminate the main org also only has visibility when switched to main org.
With the current status in fact orgs do not have any effect, as users in main org see everything and other orgs see nothing. Please let me know what I am doing wrong.
The above provided link to workaround is not available any more. [https://github.com/grafana/grafana/issues/11076 ]
With the http api I got following results, org 3 is the correct one. User 7
api users lookup
{
“id”: 7,
“email”: “N2”,
“name”: “N2 User”,
“login”: “N2”,
“theme”: “”,
“orgId”: 3,
“isGrafanaAdmin”: false,
“isDisabled”: false,
“isExternal”: false,
“authLabels”: null,
“updatedAt”: “2020-08-13T08:15:45+02:00”,
“createdAt”: “2020-08-13T08:15:45+02:00”,
“avatarUrl”: “”
}
api users 7 orgs
[
{
“orgId”: 3,
“name”: “N2”,
“role”: “Viewer”
},
{
“orgId”: 1,
“name”: “XXXXX”,
“role”: “Viewer”
}
]
Folder that the user shall see.
api folders YjHQREIMz permissions
[
{
“folderId”: 12,
“created”: “2020-08-13T08:52:55+02:00”,
“updated”: “2020-08-13T08:52:55+02:00”,
“userId”: 0,
“userLogin”: “”,
“userEmail”: “”,
“userAvatarUrl”: “”,
“teamId”: 0,
“teamEmail”: “”,
“teamAvatarUrl”: “”,
“team”: “”,
“role”: “Editor”,
“permission”: 2,
“permissionName”: “Edit”,
“uid”: “YjHQREIMz”,
“title”: “N2”,
“slug”: “n2”,
“isFolder”: true,
“url”: “ dashboards f YjHQREIMz n2”,
“inherited”: false
},
{
“folderId”: 12,
“created”: “2020-08-13T08:52:55+02:00”,
“updated”: “2020-08-13T08:52:55+02:00”,
“userId”: 0,
“userLogin”: “”,
“userEmail”: “”,
“userAvatarUrl”: “”,
“teamId”: 0,
“teamEmail”: “”,
“teamAvatarUrl”: “”,
“team”: “”,
“role”: “Viewer”,
“permission”: 1,
“permissionName”: “View”,
“uid”: “YjHQREIMz”,
“title”: “N2”,
“slug”: “n2”,
“isFolder”: true,
“url”: “ dashboards f YjHQREIMz n2”,
“inherited”: false
},
{
“folderId”: 12,
“created”: “2020-08-13T08:52:55+02:00”,
“updated”: “2020-08-13T08:52:55+02:00”,
“userId”: 0,
“userLogin”: “”,
“userEmail”: “”,
“userAvatarUrl”: “”,
“teamId”: 1,
“teamEmail”: “[N2@test.com]”,
“teamAvatarUrl”: “ avatar c44a377efc08c4d1750a9bd0180ce720”,
“team”: “N2”,
“permission”: 4,
“permissionName”: “Admin”,
“uid”: “YjHQREIMz”,
“title”: “N2”,
“slug”: “n2”,
“isFolder”: true,
“url”: “/dashboards/f/YjHQREIMz/n2”,
“inherited”: false
}
]
api teams 1
{
“id”: 1,
“orgId”: 1,
“name”: “N2”,
“email”: “[N2@test.com]”,
“avatarUrl”: “avatar c44a377efc08c4d1750a9bd0180ce720”,
“memberCount”: 2,
“permission”: 0
}