{"action":"created","issue":{"url":"https://api.github.com/repos/kalleknast/Microgrid/issues/4","repository_url":"https://api.github.com/repos/kalleknast/Microgrid","labels_url":"https://api.github.com/repos/kalleknast/Microgrid/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/kalleknast/Microgrid/issues/4/comments","events_url":"https://api.github.com/repos/kalleknast/Microgrid/issues/4/events","html_url":"https://github.com/kalleknast/Microgrid/issues/4","id":374554213,"node_id":"MDU6SXNzdWUzNzQ1NTQyMTM=","number":4,"title":"How to change the affiliation?","user":{"login":"kalleknast","id":12412777,"node_id":"MDQ6VXNlcjEyNDEyNzc3","avatar_url":"https://avatars0.githubusercontent.com/u/12412777?v=4","gravatar_id":"","url":"https://api.github.com/users/kalleknast","html_url":"https://github.com/kalleknast","followers_url":"https://api.github.com/users/kalleknast/followers","following_url":"https://api.github.com/users/kalleknast/following{/other_user}","gists_url":"https://api.github.com/users/kalleknast/gists{/gist_id}","starred_url":"https://api.github.com/users/kalleknast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalleknast/subscriptions","organizations_url":"https://api.github.com/users/kalleknast/orgs","repos_url":"https://api.github.com/users/kalleknast/repos","events_url":"https://api.github.com/users/kalleknast/events{/privacy}","received_events_url":"https://api.github.com/users/kalleknast/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2018-10-26T21:30:44Z","updated_at":"2018-11-26T01:40:48Z","closed_at":null,"author_association":"OWNER","body":"In ```registerUser.js```, the call to ```fabric_ca_client.register(...)``` only seems to work when ```affiliation``` is set to ```'org1.department1'```.\r\nTrying with ```'house01'``` gives an error.\r\n```\r\n$ node registerUser.js\r\n Store path:./hfc-key-store\r\nSuccessfully loaded admin from persistence\r\nFailed to register: Error: fabric-ca request register failed with errors [[{\"code\":0,\"message\":\"Registration of 'user1' failed in affiliation validation: Failed getting affiliation 'house01': : scode: 404, code: 63, msg: Failed to get Affiliation: sql: no rows in result set\"}]]\r\n```\r\nIt seems like the affiliations are hardcoded in ```/etc/hyperledger/fabric-ca-server/fabric-ca-server-config.yaml``` in the ```ca.microgrid.org``` container.\r\n\r\nHow to set the affiliations properly?"},"comment":{"url":"https://api.github.com/repos/kalleknast/Microgrid/issues/comments/441494825","html_url":"https://github.com/kalleknast/Microgrid/issues/4#issuecomment-441494825","issue_url":"https://api.github.com/repos/kalleknast/Microgrid/issues/4","id":441494825,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MTQ5NDgyNQ==","user":{"login":"kalleknast","id":12412777,"node_id":"MDQ6VXNlcjEyNDEyNzc3","avatar_url":"https://avatars0.githubusercontent.com/u/12412777?v=4","gravatar_id":"","url":"https://api.github.com/users/kalleknast","html_url":"https://github.com/kalleknast","followers_url":"https://api.github.com/users/kalleknast/followers","following_url":"https://api.github.com/users/kalleknast/following{/other_user}","gists_url":"https://api.github.com/users/kalleknast/gists{/gist_id}","starred_url":"https://api.github.com/users/kalleknast/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kalleknast/subscriptions","organizations_url":"https://api.github.com/users/kalleknast/orgs","repos_url":"https://api.github.com/users/kalleknast/repos","events_url":"https://api.github.com/users/kalleknast/events{/privacy}","received_events_url":"https://api.github.com/users/kalleknast/received_events","type":"User","site_admin":false},"created_at":"2018-11-26T01:40:48Z","updated_at":"2018-11-26T01:40:48Z","author_association":"OWNER","body":"Thanks! I'll get to it next week. "}}
{"actor":{"display_login":"kalleknast"}}