Queries the policies that are attached to a RAM user group.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListPoliciesForGroup

The operation that you want to perform. Set the value to ListPoliciesForGroup.

GroupName String Yes dev

The name of the RAM user group.

Response parameters

Parameter Type Example Description
Policies Array

The list of the policies that are attached to the RAM user group.

Policy

The information of a policy.

AttachDate String 2015-01-23T12:33:18Z

The time when the policy was attached to the RAM user group.

DefaultVersion String v1

The default version of the policy.

Description String OSS administrator

The description of the policy.

PolicyName String OSS-Administrator

The name of the policy.

PolicyType String Custom

The type of the policy.

RequestId String 7B8A4E7D-6CFF-471D-84DF-195A7A241ECB

The ID of the request.

Examples

Sample requests


https://ram.aliyuncs.com/?Action=ListPoliciesForGroup
&GroupName=dev
&<Common request parameters>

Sample success responses

XML format

<ListPoliciesForGroupResponse>
      <RequestId>7B8A4E7D-6CFF-471D-84DF-195A7A241ECB</RequestId>
      <Policies>
            <Policy>
                  <PolicyName>OSS-Administrator</PolicyName>
                  <PolicyType>Custom</PolicyType>
                  <Description>OSS administrator</Description>
                  <DefaultVersion>v1</DefaultVersion>
                  <AttachDate>2015-01-23T12:33:18Z</AttachDate>
            </Policy>
            <Policy>
                  <PolicyName>ReadOnlyAccess</PolicyName>
                  <PolicyType>System</PolicyType>
                  <Description>Read-only access</Description>
                  <DefaultVersion>v1</DefaultVersion>
                  <AttachDate>2015-02-18T17:22:08Z</AttachDate>
            </Policy>
      </Policies>
</ListPoliciesForGroupResponse>

JSON format

{
	"Policies":{
		"Policy":[
			{
				"Description":"OSS administrator",
				"PolicyName":"OSS-Administrator",
				"AttachDate":"2015-01-23T12:33:18Z",
				"DefaultVersion":"v1",
				"PolicyType":"Custom"
			},
			{
				"Description":"Read-only access",
				"PolicyName":"ReadOnlyAccess",
				"AttachDate":"2015-02-18T17:22:08Z",
				"DefaultVersion":"v1",
				"PolicyType":"System"
			}
		]
	},
	"RequestId":"7B8A4E7D-6CFF-471D-84DF-195A7A241ECB"
}

Error codes

For a list of error codes, visit the API Error Center.