That was a function for "wizards" and has been changed in the recent years to make checks, respect CUA, etc.
You should use the correct APIs -> BAPI_USER_GET_DETAIL, then remove the Profiles from the exported list, and then call BAPI_USER_PROFILES_ASSIGN (or the CUA equivalent for LOCal profiles to be (re)assigned).
Cheers,
Julius