{"action":"closed","issue":{"url":"https://api.github.com/repos/saltstack/salt/issues/35122","repository_url":"https://api.github.com/repos/saltstack/salt","labels_url":"https://api.github.com/repos/saltstack/salt/issues/35122/labels{/name}","comments_url":"https://api.github.com/repos/saltstack/salt/issues/35122/comments","events_url":"https://api.github.com/repos/saltstack/salt/issues/35122/events","html_url":"https://github.com/saltstack/salt/issues/35122","id":168829562,"number":35122,"title":"salt-api add user","user":{"login":"SolarisYan","id":8148762,"avatar_url":"https://avatars.githubusercontent.com/u/8148762?v=3","gravatar_id":"","url":"https://api.github.com/users/SolarisYan","html_url":"https://github.com/SolarisYan","followers_url":"https://api.github.com/users/SolarisYan/followers","following_url":"https://api.github.com/users/SolarisYan/following{/other_user}","gists_url":"https://api.github.com/users/SolarisYan/gists{/gist_id}","starred_url":"https://api.github.com/users/SolarisYan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SolarisYan/subscriptions","organizations_url":"https://api.github.com/users/SolarisYan/orgs","repos_url":"https://api.github.com/users/SolarisYan/repos","events_url":"https://api.github.com/users/SolarisYan/events{/privacy}","received_events_url":"https://api.github.com/users/SolarisYan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-02T08:39:23Z","updated_at":"2016-08-04T02:35:48Z","closed_at":"2016-08-04T02:35:48Z","body":"hello, i use salt-api to add user as follow:\r\n\r\n```\r\ncurl -sSk http://10.10.100.51:8000 \\\r\n     -H 'Accept: application/x-yaml' \\\r\n     -H 'X-Auth-Token:  token' \\\r\n     -d client='local' \\\r\n     -d tgt='minion02','minion03' \\\r\n     -d fun='user.add' \\\r\n     -d arg='salt88' \\\r\n     -d gid=dba \\\r\n     -d groups=oinstall \\\r\n     -d home='/home/salt88' \\\r\n     -d jid='useradd' \\\r\n     -d expr_form='list'\r\n```\r\n\r\nthe return is: \r\n\r\n```\r\nreturn:\r\n- {minion02: true, minion03: true}\r\n```\r\n\r\nbut when i use id salt88,the result is: `uid=1009(salt88) gid=1013(salt88) groups=1013(salt88)`\r\n\r\nAnd when i use the cmd `salt '*' user.add salt99 gid=dba groups=oinstall home='/home/salt99'`\r\nthe return is:\r\n\r\n```\r\nminion02:\r\n    True\r\nminion03:\r\n    True\r\n```\r\n\r\nand i use id salt99,the result is: `uid=1010(salt99) gid=1009(dba) groups=1009(dba),1008(oinstall)`\r\n\r\nobviously the salt-api not set the gid and groups as my given, is it a bug?\r\n"}}
{"actor":{"display_login":"SolarisYan"}}