{"action":"closed","issue":{"url":"https://api.github.com/repos/volkanceylan/Serenity/issues/313","repository_url":"https://api.github.com/repos/volkanceylan/Serenity","labels_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/313/labels{/name}","comments_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/313/comments","events_url":"https://api.github.com/repos/volkanceylan/Serenity/issues/313/events","html_url":"https://github.com/volkanceylan/Serenity/issues/313","id":136062000,"number":313,"title":"Filter Record By Checking Their Role","user":{"login":"samdubey","id":4013722,"avatar_url":"https://avatars.githubusercontent.com/u/4013722?v=3","gravatar_id":"","url":"https://api.github.com/users/samdubey","html_url":"https://github.com/samdubey","followers_url":"https://api.github.com/users/samdubey/followers","following_url":"https://api.github.com/users/samdubey/following{/other_user}","gists_url":"https://api.github.com/users/samdubey/gists{/gist_id}","starred_url":"https://api.github.com/users/samdubey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdubey/subscriptions","organizations_url":"https://api.github.com/users/samdubey/orgs","repos_url":"https://api.github.com/users/samdubey/repos","events_url":"https://api.github.com/users/samdubey/events{/privacy}","received_events_url":"https://api.github.com/users/samdubey/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-24T13:30:47Z","updated_at":"2016-02-25T08:03:24Z","closed_at":"2016-02-25T08:03:24Z","body":"Dear Volkan Ceylan,\r\n\r\nWe are developing Learning Management Solution with Serenity:\r\nWe have following roles defined, we need to fetch data based on Roles assigned to User\r\n\r\nAdministrators\r\nInstitute Admins\r\nBranch Admins\r\n**Teachers**\r\n**Students**\r\n\r\nI have checked following class\r\npublic class UserDefinition : IUserDefinition\r\n    {\r\n        public string Id { get { return UserId.ToInvariant(); } }\r\n        public string DisplayName { get; set; }\r\n        public string Email { get; set; }\r\n        public short IsActive { get; set; }\r\n        public int UserId { get; set; }\r\n        public string Username { get; set; }\r\n        public string PasswordHash { get; set; }\r\n        public string PasswordSalt { get; set; }\r\n        public string Source { get; set; }\r\n        public DateTime? UpdateDate { get; set; }\r\n        public DateTime? LastDirectoryUpdate { get; set; }\r\n        public int TenantId { get; set; }\r\n    }\r\nDo i need to extend this class to check for Roles in order to bring data based on Roles for User\r\n\r\nMany Thanks,\r\nSameer"}}