Stay organized with collectionsSave and categorize content based on your preferences.
A unique identifier for an entity in the Cloud Identity Groups API.
An entity can represent either a group with an optionalnamespaceor a user without anamespace. The combination ofidandnamespacemust be unique; however, the sameidcan be used with differentnamespaces.
JSON representation
{"id":string,"namespace":string}
Fields
id
string
The ID of the entity.
For Google-managed entities, theidmust be the email address of an existing group or user.
For external-identity-mapped entities, theidmust be a string conforming to the Identity Source's requirements.
Must be unique within anamespace.
namespace
string
The namespace in which the entity exists.
If not specified, theEntityKeyrepresents a Google-managed entity such as a Google user or a Google Group.
If specified, theEntityKeyrepresents an external-identity-mapped group. The namespace must correspond to an identity source created in Admin Console and must be in the form ofidentitysources/{identity_source_id}.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-21 UTC."],[[["\u003cp\u003eAn EntityKey in the Cloud Identity Groups API uniquely identifies either a group (with an optional namespace) or a user (without a namespace).\u003c/p\u003e\n"],["\u003cp\u003eThe combination of the \u003ccode\u003eid\u003c/code\u003e and \u003ccode\u003enamespace\u003c/code\u003e fields within an EntityKey must be unique, although the same \u003ccode\u003eid\u003c/code\u003e can be reused across different \u003ccode\u003enamespace\u003c/code\u003es.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eid\u003c/code\u003e field represents the entity's ID, which, for Google-managed entities, should be an existing email address and for external-identity-mapped entities, it should be a string conforming to the Identity Source's requirements.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003enamespace\u003c/code\u003e field, if specified, indicates that the EntityKey represents an external-identity-mapped group and must follow the \u003ccode\u003eidentitysources/{identity_source_id}\u003c/code\u003e format, corresponding to an Admin Console identity source.\u003c/p\u003e\n"]]],[],null,["# EntityKey\n\nA unique identifier for an entity in the Cloud Identity Groups API.\n\nAn entity can represent either a group with an optional `namespace` or a user without a `namespace`. The combination of `id` and `namespace` must be unique; however, the same `id` can be used with different `namespace`s."]]