Method: Fog::AWS::IAM::Real#list_groups_for_user
- Defined in:
- lib/fog/aws/requests/iam/list_groups_for_user.rb
permalink #list_groups_for_user(user_name, options = {}) ⇒ Object
List groups_for_user
Parameters
-
user_name<~String> - the username you want to look up group membership for
-
options<~Hash>:
-
‘Marker’<~String> - used to paginate subsequent requests
-
‘MaxItems’<~Integer> - limit results to this number per page
-
Returns
-
response<~Excon::Response>:
-
body<~Hash>:
-
‘GroupsForUser’<~Array> - Groups for a user
-
group_for_user<~Hash>:
-
‘Arn’ -
-
‘GroupId’ -
-
‘GroupName’ -
-
‘Path’ -
-
-
-
‘IsTruncated’<~Boolean> - Whether or not results were truncated
-
‘Marker’<~String> - appears when IsTruncated is true as the next marker to use
-
‘RequestId’<~String> - Id of the request
-
-
See Also
docs.amazonwebservices.com/IAM/latest/APIReference/API_ListGroupsForUser.html
32 33 34 35 36 37 38 |
# File 'lib/fog/aws/requests/iam/list_groups_for_user.rb', line 32 def list_groups_for_user(user_name, = {}) request({ 'Action' => 'ListGroupsForUser', 'UserName' => user_name, :parser => Fog::Parsers::AWS::IAM::ListGroupsForUser.new }.merge!()) end |