The way that type (with SystemAssigned, UserAssigned) is defined is correct. For property userAssignedIdentities it is unclear if it is correct or not as there is no way to know what is the input. You also haven't specified what exactly issue/errors you are facing and the full Azure policy that you are using.