{"action":"created","issue":{"url":"https://api.github.com/repos/grafana/grafana/issues/4958","repository_url":"https://api.github.com/repos/grafana/grafana","labels_url":"https://api.github.com/repos/grafana/grafana/issues/4958/labels{/name}","comments_url":"https://api.github.com/repos/grafana/grafana/issues/4958/comments","events_url":"https://api.github.com/repos/grafana/grafana/issues/4958/events","html_url":"https://github.com/grafana/grafana/issues/4958","id":153952956,"number":4958,"title":"[Bug] User Role is overridden when viewing embed graph and then logging in","user":{"login":"Liudvikas","id":196435,"avatar_url":"https://avatars.githubusercontent.com/u/196435?v=3","gravatar_id":"","url":"https://api.github.com/users/Liudvikas","html_url":"https://github.com/Liudvikas","followers_url":"https://api.github.com/users/Liudvikas/followers","following_url":"https://api.github.com/users/Liudvikas/following{/other_user}","gists_url":"https://api.github.com/users/Liudvikas/gists{/gist_id}","starred_url":"https://api.github.com/users/Liudvikas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Liudvikas/subscriptions","organizations_url":"https://api.github.com/users/Liudvikas/orgs","repos_url":"https://api.github.com/users/Liudvikas/repos","events_url":"https://api.github.com/users/Liudvikas/events{/privacy}","received_events_url":"https://api.github.com/users/Liudvikas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-10T08:41:22Z","updated_at":"2016-05-10T09:20:48Z","closed_at":"2016-05-10T09:20:48Z","body":"To reproduce:\r\n1. [Browser1][Admin] Set User role to Editor;\r\n2. [Browser2][User][logged out] View embed graph on 3rd party system (wiki);\r\n3. [Browser2][User] Log in to grafana;\r\n4. [Browser1][Admin] Refresh users page - User role is \"Viewer\".\r\n\r\n\r\n* What grafana version are you using? \r\nGrafana v3.0.0-beta7 (2016-05-02)\r\n* What OS are you running grafana on?\r\nRed Hat Enterprise Linux Server release 6.7 (Santiago)\r\n\r\nAttached grafana.ini:\r\n[grafana.ini.txt](https://github.com/grafana/grafana/files/256723/grafana.ini.txt)\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/grafana/grafana/issues/comments/218103900","html_url":"https://github.com/grafana/grafana/issues/4958#issuecomment-218103900","issue_url":"https://api.github.com/repos/grafana/grafana/issues/4958","id":218103900,"user":{"login":"torkelo","id":10999,"avatar_url":"https://avatars.githubusercontent.com/u/10999?v=3","gravatar_id":"","url":"https://api.github.com/users/torkelo","html_url":"https://github.com/torkelo","followers_url":"https://api.github.com/users/torkelo/followers","following_url":"https://api.github.com/users/torkelo/following{/other_user}","gists_url":"https://api.github.com/users/torkelo/gists{/gist_id}","starred_url":"https://api.github.com/users/torkelo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torkelo/subscriptions","organizations_url":"https://api.github.com/users/torkelo/orgs","repos_url":"https://api.github.com/users/torkelo/repos","events_url":"https://api.github.com/users/torkelo/events{/privacy}","received_events_url":"https://api.github.com/users/torkelo/received_events","type":"User","site_admin":false},"created_at":"2016-05-10T09:20:48Z","updated_at":"2016-05-10T09:20:48Z","body":"It looks like you have ldap enabled, ldap group mappings will set user roles when logging (so they match the your ldap group -> grafana role mapping)"}}