HEX
Server: Apache
System: Linux pdx1-shared-a2-09 6.6.116-grsec-jammy-dirty #1 SMP Sat Nov 8 00:02:42 UTC 2025 x86_64
User: dh_pvsc7i (5084578)
PHP: 8.1.31
Disabled: NONE
Upload Files
File: //usr/share/doc/awscli/examples/guardduty/get-master-account.rst
**To retrieve details about your master account in the current region**

The following ``get-master-account`` example displays the status and details of the master account associated with your detector in the current region. ::

    aws guardduty get-master-account \
        --detector-id 12abc34d567e8fa901bc2d34eexample  

Output::

    {
        "Master": {
            "InvitationId": "04b94d9704854a73f94e061e8example",
            "InvitedAt": "2020-06-09T22:23:04.970Z",
            "RelationshipStatus": "Enabled",
            "AccountId": "123456789111"
        }
    }

For more information, see `Understanding the Relationship between GuardDuty Master and Member Accounts <https://docs.aws.amazon.com/guardduty/latest/ug/guardduty_accounts.html#master_member_relationships>`__ in the GuardDuty User Guide.