This article explains why updating the Sales Organization on an existing user fails in Consumer Goods Cloud and how to resolve it using the supported assignment workflow. Customers describe this as: "When updating Sales Organization = 5280 on existing user, the process triggers a validation message: 'You can't assign the Sales Organization to your profile.'" and "if Modify All Data is granted via a Permission Set instead of the profile, the update still fails." The exact error returned by the cgcloud managed package is "FIELD_CUSTOM_VALIDATION_EXCEPTION: You can't assign the Sales Organization to your profile." Trigger conditions: the error occurs only when updating the Sales Organization [cgcloud__Sales_Org__c] field on an existing User record (not at user creation), when the executing or target user's Profile does not have the Modify All Data permission enabled directly on the Profile. Debug logs show the cgcloud.UserTrigger executes "SELECT Id, PermissionsModifyAllData FROM Profile WHERE Id = :tmpVar1" and "SELECT Sales_Organization__r.Name FROM Sales_Organization_User__c WHERE User__c = :tmpVar1", then aborts before any DML — confirming the package checks Profile-level permissions, not effective permissions from Permission Sets. Affected editions: Lightning Experience in Professional, Enterprise, and Unlimited Editions with Consumer Goods Cloud enabled. Affected profiles include CGCloud_User_Profile_Standard, CGCloud_User_Profile, and any custom profile cloned from these without Modify All Data.
Do not grant Modify All Data on the Profile to bypass this validation. Instead, assign the Sales Organization to the user through the Sales Organization related list, which is the supported workflow.
Confirm the issue is resolved by reopening the target user's record at Setup > Users > Users > [Target User], changing Sales Organization [cgcloud__Sales_Org__c] to a value the user is mapped to via a Sales Organization User record, and saving — the save completes without the "You can't assign the Sales Organization to your profile" error.
005385048

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.