Ok got this running on a C9300-48U running ios-xe 16.12 by adding the following command:
macro auto global control detection mac-address
The problem is that I need this also on 3560cx running ios 15.2 and there the command macro auto global control only allows the options "device" and "trigger".
Any help is welcome. Thank you.