We are using Adobe IO Rest API to create a profile and add the subscriptions to the profile.
We are always getting the error "orgUnit property is not valid for the 'profile' resource." when we trying to override the default value ("all") set by profileAndServicesExt/profile api. Same applicable for geoUnit.
Note: We are using custom profile that get extended from default one with
We have tried the first approach as you said, but we are always seeing the profile has been created with value of orgUnit and GeoUnit pointing to the value "all" instead of the one that we chosen on security group.
Created custom security group with OrgUnit and GeoUnit pointing to our custom value on campaign server.
Created mapping for that security group on adobe marketing cloud with the format "Campaign Standard - <Tenant ID> - <Security group>".
Created Adobe IO integration for campaign with value pointed to the custom security group.