refactored update task
changes for passing local users to portal creation