add api access changes for mdm agent