Each macro that can be restricted must have a configuration entry. For example, the Cache macro might have an entry that looks like one of the following:
"cache" is the property key and the information after the equal sign (=) is the property value.
Both property keys and property values are case-sensitive.
Property values are a comma separated list of groups or userids, or space keys in the form of space:xxx where "xxx" is the space key.
Line 1 uses *ANY to denote that anyone can add and edit the Cache macro in Confluence content, effectively making its use "unrestricted."
Line 2 indicates that the Cache macro can only be added and edited by members of the "confluence-administrators" group. (Content using the Cache macro would require an "edit" page restriction indicating only members of the "confluence-administrators" group can edit the page.)
Line 3 indicates that the Cache macro can only be added and edited by members of either the "confluence-administrators" or "trusted-users-cache" group. (Content using the Cache macro would require an "edit" page restriction indicating that only members of the "confluence-administrators" group and/or "trusted-users-cache" group can edit the page.)
Line 4 indicates that the Cache macro can only be added and edited by the user "bswift". (Content using the Cache macro would require an "edit" page restriction indicating only user "bswift" can edit the page.)
Line 5 indicates that the Cache macro can only be added and edited on content residing in the space having a space key of "DEMO." (The space would require space-level permissions that indicate only trusted users and/or groups can add pages, blogs or comments. These trusted users and/or groups need not be listed in the properties file on the entry—like this one—that uses space-based Macro Security.)
You can also combine several of these into a single entry if you like, such as: