Register setpermission task