{"action":"created","issue":{"url":"https://api.github.com/repos/symfony2admingenerator/GeneratorBundle/issues/154","labels_url":"https://api.github.com/repos/symfony2admingenerator/GeneratorBundle/issues/154/labels{/name}","comments_url":"https://api.github.com/repos/symfony2admingenerator/GeneratorBundle/issues/154/comments","events_url":"https://api.github.com/repos/symfony2admingenerator/GeneratorBundle/issues/154/events","html_url":"https://github.com/symfony2admingenerator/GeneratorBundle/issues/154","id":81050823,"number":154,"title":"Credentials","user":{"login":"pjam","id":850139,"avatar_url":"https://avatars.githubusercontent.com/u/850139?v=3","gravatar_id":"","url":"https://api.github.com/users/pjam","html_url":"https://github.com/pjam","followers_url":"https://api.github.com/users/pjam/followers","following_url":"https://api.github.com/users/pjam/following{/other_user}","gists_url":"https://api.github.com/users/pjam/gists{/gist_id}","starred_url":"https://api.github.com/users/pjam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjam/subscriptions","organizations_url":"https://api.github.com/users/pjam/orgs","repos_url":"https://api.github.com/users/pjam/repos","events_url":"https://api.github.com/users/pjam/events{/privacy}","received_events_url":"https://api.github.com/users/pjam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-05-26T17:04:27Z","updated_at":"2015-05-29T12:36:35Z","closed_at":null,"body":"Hi.\r\n\r\nCould you give some pointers on how to use credentials in generator.yml?\r\n\r\nI want a list field visible only with some credentials and tried\r\n```yaml\r\nfields:\r\n    fieldname:\r\n        credentials: [ROLE_SUPER_ADMIN]\r\n```\r\n\r\nwithout luck, error thrown \"Could not set option \"credentials\" on \"fieldname\" column in \"Entity\" list builder.\". Is it possible to use credentials for fields? How?\r\n\r\nRegards"},"comment":{"url":"https://api.github.com/repos/symfony2admingenerator/GeneratorBundle/issues/comments/106791926","html_url":"https://github.com/symfony2admingenerator/GeneratorBundle/issues/154#issuecomment-106791926","issue_url":"https://api.github.com/repos/symfony2admingenerator/GeneratorBundle/issues/154","id":106791926,"user":{"login":"tobias-93","id":3901745,"avatar_url":"https://avatars.githubusercontent.com/u/3901745?v=3","gravatar_id":"","url":"https://api.github.com/users/tobias-93","html_url":"https://github.com/tobias-93","followers_url":"https://api.github.com/users/tobias-93/followers","following_url":"https://api.github.com/users/tobias-93/following{/other_user}","gists_url":"https://api.github.com/users/tobias-93/gists{/gist_id}","starred_url":"https://api.github.com/users/tobias-93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tobias-93/subscriptions","organizations_url":"https://api.github.com/users/tobias-93/orgs","repos_url":"https://api.github.com/users/tobias-93/repos","events_url":"https://api.github.com/users/tobias-93/events{/privacy}","received_events_url":"https://api.github.com/users/tobias-93/received_events","type":"User","site_admin":false},"created_at":"2015-05-29T12:36:35Z","updated_at":"2015-05-29T12:36:35Z","body":"@mikeyudin keep in mind that the example I have was very basic and simple. You can define many groups in the getGroups method and use these for certain fields (you can still keep specifying credentials for different fields). All you say is already possible."}}