Home docs nex protocols Account Management (25)
Post

Account Management (25)

Methods

Most methods cannot be used by normal users.

(1) CreateAccount

Request

TypeName
StringstrPrincipalName
StringstrKey
Uint32uiGroups
StringstrEmail

Response

TypeName
Result%retval%

(2) DeleteAccount

Request

TypeName
PIDidPrincipal

Response

This method does not return anything.

(3) DisableAccount

Request

TypeName
PIDidPrincipal
DateTimedtUntil
StringstrMessage

Response

TypeName
Result%retval%

(4) ChangePassword

Request

Response

TypeName
Bool%retval%

(5) TestCapability

Request

TypeName
Uint32uiCapability

Response

TypeName
Bool%retval%

(6) GetName

Request

TypeName
PIDidPrincipal

Response

TypeName
StringstrName

(7) GetAccountData

Request

This method does not take any parameters

Response

TypeName
Uint32%retval%
AccountDataoAccountData

(8) GetPrivateData

Request

This method does not take any parameters.

Response

TypeName
Bool%retval%
DataoData

(9) GetPublicData

Request

TypeName
PIDidPrincipal

Response

TypeName
Bool%retval%
DataoData

(10) GetMultiplePublicData

Request

TypeName
List<PID>lstPrincipals

Response

TypeName
Bool%retval%
List<Data>oData

(11) UpdateAccountName

Request

TypeName
StringstrName

Response

TypeName
Result%retval%

(12) UpdateAccountEmail

Request

TypeName
StringstrName

Response

TypeName
Result%retval%

(13) UpdateCustomData

Request

TypeName
DataoPublicData
DataoPrivateData

Response

TypeName
Result%retval%

(14) FindByNameRegex

Request

TypeName
Uint32uiGroups
StringstrRegex
ResultRangeresultRange

Response

TypeName
List<BasicAccountInfo>plstAccounts

(15) UpdateAccountExpiryDate

Request

TypeName
PIDidPrincipal
DateTimedtExpiry
StringstrExpiredMessage

Response

This method does not return anything.

(16) UpdateAccountEffectiveDate

Request

TypeName
PIDidPrincipal
DateTimedtEffectiveFrom
StringstrNotEffectiveMessage

Response

This method does not return anything.

(17) UpdateStatus

Request

TypeName
StringstrStatus

Response

This method does not return anything.

(18) GetStatus

Request

TypeName
PIDidPrincipal

Response

TypeName
StringstrStatus

(19) GetLastConnectionStats

Request

TypeName
PIDidPrincipal

Response

TypeName
DateTimedtLastSessionLogin
DateTimedtLastSessionLogout
DateTimedtCurrentSessionLogin

(20) ResetPassword

Request

This method does not take any parameters.

Response

TypeName
Bool%retval%

(21) CreateAccountWithCustomData

Request

TypeName
StringstrPrincipalName
StringstrKey
Uint32uiGroups
StringstrEmail
DataoPublicData
DataoPrivateData

Response

This method does not return anything.

(22) RetrieveAccount

Request

This method does not take any parameters.

Response

TypeName
AccountDataoAccountData
DataoPublicData
DataoPrivateData

(23) UpdateAccount

Request

TypeName
StringstrKey
StringstrEmail
DataoPublicData
DataoPrivateData

Response

This method does not return anything.

(24) ChangePasswordByGuest

Request

TypeName
StringstrPrincipalName
StringstrEmail
StringstrKey

Response

This method does not return anything.

(25) FindByNameLike

Request

TypeName
Uint32uiGroups
StringstrLike
ResultRangeresultRange

Response

TypeName
List<BasicAccountInfo>plstAccounts

(26) CustomCreateAccount

Request

TypeName
StringstrPrincipalName
StringstrKey
Uint32uiGroups
StringstrEmail
DataoAuthData

Response

TypeName
PIDpid

(27) NintendoCreateAccount

Request

TypeName
StringstrPrincipalName
StringstrKey
Uint32uiGroups
StringstrEmail
DataoAuthData

oAuthData is either NintendoCreateAccountData (Wii U) or AccountExtraInfo (3DS).

Response

TypeName
PIDpid
StringpidHMAC

(28) LookupOrCreateAccount

Request

TypeName
StringstrPrincipalName
StringstrKey
Uint32uiGroups
StringstrEmail
DataoAuthData

Response

TypeName
PIDpid

(29) DisconnectPrincipal

Request

TypeName
PIDidPrincipal

Response

TypeName
Bool%retval%

(30) DisconnectAllPrincipals

Request

This method does not take any parameters.

Response

TypeName
Bool%retval%

Key Derivation

Some functions take a key string. This is a hex string derived from the password using the following method:

PlatformMethod
3DS / Wii UMD5-hash the password 65000 times
SwitchMD5-hash the password once

Types

BasicAccountInfo (Structure)

TypeName
PIDm_pidOwner
Stringm_strName

AccountData (Structure)

TypeName
PIDm_pid
Stringm_strName
Uint32m_uiGroups
Stringm_strEmail
DateTimem_dtCreationDate
DateTimem_dtEffectiveDate
Stringm_strNotEffectiveMsg
DateTimem_dtExpiryDate
Stringm_strExpiredMsg

AccountExtraInfo (Structure)

TypeDescription
Uint64Unknown
Uint32Unknown
StringNEX token

NintendoCreateAccountData (Structure)

TypeDescription
NNAInfoNNA info
StringNEX token
DateTimeBirthday
Uint64Unknown
Contents