--- title: "/api/accounts/{accountId}" slug: "apiaccountsaccountid-11" updated: 2025-08-20T01:02:47Z published: 2026-03-20T12:47:08Z canonical: "docs.grassfish.com/apiaccountsaccountid-11" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.grassfish.com/llms.txt > Use this file to discover all available pages before exploring further. # /api/accounts/{accountId} Get/api/accounts/{accountId} SecurityOAuth Authorization using OAuth2 with Client Credentials FlowClient Credentials Authorization URLhttps://identity.eu01.grassfish.com/connect/authorize Token URLhttps://identity.eu01.grassfish.com/connect/token Header parametersx-correlationTokenstring x-clientIdstringMin length0Max length128 x-onBehalfOfstringMin length0Max length24 api-versionstring Path parametersaccountIdstringRequired Responses200 OK Expand Allobject successobject (Contracts.Common.Jsons.Common.SuccessJson) okboolean messagestring | null unauthorizedAccessboolean | null notFoundboolean | null correlationTokenstring | null errors Array of object (Contracts.Common.Jsons.Common.SuccessJsonError) | null object messagestring | null idstring Valid values[ "InvalidDatePeriodEndDateBeforeStartDate", "NameAlreadyTaken", "ExternalIdAlreadyTaken", "CodeAlreadyTaken" ] fieldNamestring | null isRequiredboolean | null isOutOfRangeboolean | null isTakenboolean | null errorCodestring | null defaultDisplayMessagestring | null errorCodestring | null detailsobject (Contracts.Common.Jsons.Common.ErrorDetailsJson) messagestring | null defaultDisplayMessagestring | null accountobject (Contracts.Connect.Results.Identities.SelectAccountJson) codestring | null idstring | null namestring | null countClientsinteger (int32) | null countPlayersinteger (int32) | null components Array of object (Contracts.Connect.Results.Identities.SelectAccountResultJsonComponents) | null object codestring | null idstring | null namestring | null components Array of object (Contracts.Connect.Results.Identities.SelectAccountsResultJsonComponent) | null object codestring | null idstring | null namestring | null permissionstring Valid values[ "None", "Enabled", "Disabled", "AddAndEdit", "ViewOnly", "Hide", "Add", "Edit", "Remove" ] roles Array of object (Contracts.Connect.Results.Identities.SelectAccountResultJsonRoles) | null object codestring | null idstring | null namestring | null roles Array of object (Contracts.Connect.Results.Identities.SelectAccountsResultJsonRole) | null object codestring | null idstring | null namestring | null Expand Allobject successobject (Contracts.Common.Jsons.Common.SuccessJson) okboolean messagestring | null unauthorizedAccessboolean | null notFoundboolean | null correlationTokenstring | null errors Array of object (Contracts.Common.Jsons.Common.SuccessJsonError) | null object messagestring | null idstring Valid values[ "InvalidDatePeriodEndDateBeforeStartDate", "NameAlreadyTaken", "ExternalIdAlreadyTaken", "CodeAlreadyTaken" ] fieldNamestring | null isRequiredboolean | null isOutOfRangeboolean | null isTakenboolean | null errorCodestring | null defaultDisplayMessagestring | null errorCodestring | null detailsobject (Contracts.Common.Jsons.Common.ErrorDetailsJson) messagestring | null defaultDisplayMessagestring | null accountobject (Contracts.Connect.Results.Identities.SelectAccountJson) codestring | null idstring | null namestring | null countClientsinteger (int32) | null countPlayersinteger (int32) | null components Array of object (Contracts.Connect.Results.Identities.SelectAccountResultJsonComponents) | null object codestring | null idstring | null namestring | null components Array of object (Contracts.Connect.Results.Identities.SelectAccountsResultJsonComponent) | null object codestring | null idstring | null namestring | null permissionstring Valid values[ "None", "Enabled", "Disabled", "AddAndEdit", "ViewOnly", "Hide", "Add", "Edit", "Remove" ] roles Array of object (Contracts.Connect.Results.Identities.SelectAccountResultJsonRoles) | null object codestring | null idstring | null namestring | null roles Array of object (Contracts.Connect.Results.Identities.SelectAccountsResultJsonRole) | null object codestring | null idstring | null namestring | null Expand Allobject successobject (Contracts.Common.Jsons.Common.SuccessJson) okboolean messagestring | null unauthorizedAccessboolean | null notFoundboolean | null correlationTokenstring | null errors Array of object (Contracts.Common.Jsons.Common.SuccessJsonError) | null object messagestring | null idstring Valid values[ "InvalidDatePeriodEndDateBeforeStartDate", "NameAlreadyTaken", "ExternalIdAlreadyTaken", "CodeAlreadyTaken" ] fieldNamestring | null isRequiredboolean | null isOutOfRangeboolean | null isTakenboolean | null errorCodestring | null defaultDisplayMessagestring | null errorCodestring | null detailsobject (Contracts.Common.Jsons.Common.ErrorDetailsJson) messagestring | null defaultDisplayMessagestring | null accountobject (Contracts.Connect.Results.Identities.SelectAccountJson) codestring | null idstring | null namestring | null countClientsinteger (int32) | null countPlayersinteger (int32) | null components Array of object (Contracts.Connect.Results.Identities.SelectAccountResultJsonComponents) | null object codestring | null idstring | null namestring | null components Array of object (Contracts.Connect.Results.Identities.SelectAccountsResultJsonComponent) | null object codestring | null idstring | null namestring | null permissionstring Valid values[ "None", "Enabled", "Disabled", "AddAndEdit", "ViewOnly", "Hide", "Add", "Edit", "Remove" ] roles Array of object (Contracts.Connect.Results.Identities.SelectAccountResultJsonRoles) | null object codestring | null idstring | null namestring | null roles Array of object (Contracts.Connect.Results.Identities.SelectAccountsResultJsonRole) | null object codestring | null idstring | null namestring | null 401 Unauthorized 403 Forbidden object typestring | null titlestring | null statusinteger (int32) | null detailstring | null instancestring | null property* object typestring | null titlestring | null statusinteger (int32) | null detailstring | null instancestring | null property* object typestring | null titlestring | null statusinteger (int32) | null detailstring | null instancestring | null property* 404 Not Found object typestring | null titlestring | null statusinteger (int32) | null detailstring | null instancestring | null property* object typestring | null titlestring | null statusinteger (int32) | null detailstring | null instancestring | null property* object typestring | null titlestring | null statusinteger (int32) | null detailstring | null instancestring | null property* 500 Internal Server Error