correction to the last:
the conditional was a bit wrong.
Try this:
(:cell:)
(:A1: :){$:A1}\
(:if expr ( ( equal {$:A1} '' ) && authid ):)\
[-(:ptvreplace name=A1 label='add me' val={$AuthId}:)-]\
(:if expr authuser {$:A1} && authid:)\
%right%'^[- (:ptvreplace name=A1 label='X' val='':)-]^'\
(:if:)
~Hans