Changed api4 call to api4 for portaluser so works with current extensions, and added a check for selection type id