Restriction by user to export POWER CHART (SCRIPT)

In POWER CHART you can hide icons (example: showMoreButton: true or showMoreButton: false)
Is there any way to make a script (Example: IF user = Charles THEN showMoreButton = true ELSE showMoreButton = false)
Has anyone implemented something similar?

Button