Hello professionals!
Please help me with this action.
I need to change BusinessUnit of SystemUser - but do it without reassing entities.
I didn't change BU of a user using code before. When you do it using UI - system doesn't suggest reassignee.
What's wrong with reassigning to the same user? I'm afraid there is no other way to reassign BU of the user that you use.
Hello!
I use this code to change BU now:
SetBusinessSystemUserRequest req = new SetBusinessSystemUserRequest(); //business unit to assign user to req.BusinessId = _BU; //user to re-assign req.UserId = _FindUID; //can be a different team or systemuser, used to reassign records owned by person //6300040D-2106-E611-80C6-000C296C5B0A req.ReassignPrincipal = new EntityReference("systemuser", _FindUID); try { //Program.logger.Info(string.Concat("change bu")); service.Execute(req); } ...
It works but ReassignPrincipal reassign all records owned by UserId - to _FindUID. Even if UserId = _FindUID.
So the question is - how to disable reassign?
Or use another method to change BU...
Hello,
What do you mean with "reassign entities"?
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156