SysChangeEmailIdentity
Changes email address associated with specified user's email identity.
Service | Operation |
---|---|
identity | SYS_CHANGE_EMAIL_IDENTITY |
Method Parameters
Parameter | Description |
---|---|
oldEmailAddress | Old email address |
profileId | The profileId of the applicable user |
oldEmailAddress | The user's old email address |
newEmailAddress | The user's new email address |
updateContactEmail | Whether to also update contact email in user's profile |
Usage
http://localhost:3000
- C#
- C++
- Objective-C
- Java
- JavaScript
- Dart
- Cloud Code
- Raw
//cloud code only
//cloud code only
//cloud code only
//cloud code only
//cloud code only
// Cloud Code only. To view example, switch to the Cloud Code tab
var profileId = "user-profile-id";
var oldEmailAddress = "oldemail@email.com";
var newEmailAddress = "newemail@email.com";
var updateContactEmail = true;
var identityProxy = bridge.getIdentityServiceProxy();
var postResult = identityProxy.sysChangeEmailIdentity(profileId, oldEmailAddress, newEmailAddress, updateContactEmail);
if (postResult.status == 200) {
// Success!
}
{
"service": "identity",
"operation": "SYS_CHANGE_EMAIL_IDENTITY",
"data": {
"profileId": "user-profile-id",
"oldEmailAddress": "oldemail@email.com",
"newEmailAddress": "newemail@email.com",
"updateContactEmail": true
}
}
JSON Response
{
"status": 200,
"data": {}
}
Common Error Code
Status Codes
Code | Name | Description |
---|---|---|
40583 | APP_ERROR | New email address is already in use |