This topic shows you how to create custom policies to grant permissions to the RAM users within your Alibaba Cloud account. Then, you can log on to the ActionTrail console as one of these RAM users and use ActionTrail resources.

Background information

  • Take note of the following system policies before you authorize RAM users to use ActionTrail:
    • AliyunActionTrailFullAccess: full permissions on ActionTrail
    • AliyunActionTrailReadOnlyAccess: read-only permissions on ActionTrail

    If the preceding system policies cannot meet your requirements, you can create custom policies as needed.

  • You must view the supported ActionTrail API operations and the RAM policies related to ActionTrail before the authorization. For more information, see RAM account authentication.


  1. Create a RAM user.
    For more information, see Create a RAM user.
  2. Create a custom policy.
    For more information, see Create a custom policy and Examples of policies.
  3. Grant the required permissions to the RAM user.
    For more information, see Grant permissions to a RAM user.

Examples of policies

Grant read-only permissions on ActionTrail to a RAM user and allow the RAM user to access ActionTrail only from a specified IP address.
    "Version": "1",
    "Statement": [
            "Effect": "Allow",
            "Action": [
            "Resource": "*",
            "Condition": {
                "IpAddress": {
                    "acs:SourceIp": "42.120.XX.X/24"