I am trying to change the dashboard by having a builder and then updating, but I'm not sure if I'm missing anything. Any help would be great!
jiraServiceContextImplDeleted - I used an admin account to get the portal page
jiraServiceContextImpl - Used the target user (who will become the owner)
if (portalPageService.getPortalPage(jiraServiceContextImplDeleted, p.getId())){
portalPageService.validateForChangeOwner(jiraServiceContextImpl, p){
def builder = new PortalPage.Builder()
.portalPage(p)
.owner(targetUser)
.build()
portalPageService.updatePortalPage(jiraServiceContextImpl, p, false)
}