HEX
Server: Apache
System: Linux vps-cdc32557.vps.ovh.ca 5.15.0-156-generic #166-Ubuntu SMP Sat Aug 9 00:02:46 UTC 2025 x86_64
User: hanode (1017)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //usr/share/doc/awscli/examples/cloud9/describe-environment-memberships.rst
**To gets information about environment members for an AWS Cloud9 development environment**

This example gets information about environment members for the specified AWS Cloud9 development environment.

Command::

  aws cloud9 describe-environment-memberships --environment-id 8a34f51ce1e04a08882f1e811bd706EX

Output::

  {
    "memberships": [
      {
        "environmentId": "8a34f51ce1e04a08882f1e811bd706EX",
        "userId": "AIDAJ3LOROMOUXTBSU6EX",
        "userArn": "arn:aws:iam::123456789012:user/AnotherDemoUser",
        "permissions": "read-write"
      },
      {
        "environmentId": "8a34f51ce1e04a08882f1e811bd706EX",
        "userId": "AIDAJNUEDQAQWFELJDLEX",
        "userArn": "arn:aws:iam::123456789012:user/MyDemoUser",
        "permissions": "owner"
      }
    ]
  }

**To get information about the owner of an AWS Cloud9 development environment**

This example gets information about the owner of the specified AWS Cloud9 development environment.

Command::

  aws cloud9 describe-environment-memberships --environment-id 8a34f51ce1e04a08882f1e811bd706EX --permissions owner

Output::

  {
    "memberships": [
      {
        "environmentId": "8a34f51ce1e04a08882f1e811bd706EX",
        "userId": "AIDAJNUEDQAQWFELJDLEX",
        "userArn": "arn:aws:iam::123456789012:user/MyDemoUser",
        "permissions": "owner"
      }
    ]
  }

**To get information about an environment member for multiple AWS Cloud9 development environments**

This example gets information about the specified environment member for multiple AWS Cloud9 development environments.

Command::

  aws cloud9 describe-environment-memberships --user-arn arn:aws:iam::123456789012:user/MyDemoUser

Output::

  {
    "memberships": [
      {
        "environmentId": "10a75714bd494714929e7f5ec4125aEX",
        "lastAccess": 1516213427.0,
        "userId": "AIDAJNUEDQAQWFELJDLEX",
        "userArn": "arn:aws:iam::123456789012:user/MyDemoUser",
        "permissions": "owner"
      },
      {
        "environmentId": "1980b80e5f584920801c09086667f0EX",
        "lastAccess": 1516144884.0,
        "userId": "AIDAJNUEDQAQWFELJDLEX",
        "userArn": "arn:aws:iam::123456789012:user/MyDemoUser",
        "permissions": "owner"
      }
    ]
  }