SAP Message 01589 - You are not authorized to assign profiles

Diagnosis
IF &V1(0)& <> &V1& AND &V2& <> &V2(0)&
You are not authorized to assign the profile &V1& to the user&V2& or to cancel the assignment.
ELSEIF &V1& = &V1(0)& AND &V2& <> &V2(0)&
You are not authorized to assign profiles to the user &V2& or tocancel the authorization.
ELSEIF &V1& <> &V1(0)& AND &V2& = &V2(0)&
You are not authorized to assign the profile &V1& to users or tocancel the authorization.
ELSEIF &V1& = &V1(0)& AND &V2& = &V2(0)&
You are not authorized to assign profiles to users or to cancel theauthorization.
ENDIF