I need to automate changing all users' emails from a claimed domain to an unclaimed domain.
I can change each users's email manually, indicating I have the correct permissions but I get an error using REST:
{
"key": "forbidden.unclaimedDomain",
"context": {
"domain": "xyzzy.com"
},
"errorKey": "forbidden.unclaimed-domain",
"errorDetail": {
"domain": "xyzzy.com"
}
}
Is there any way to do what I need to do?