Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

User macro using LoginManager not working anymore in Confluence 7


after upgrading to Confluence 7 all user macros using something like:


don't seem to work anymore. The API clearly state that there is not change:

Any known workaround or shall I file a bug with Atlassian?



1 answer

I am seeing this behavior as well.

I have a user macro that reports last login date of users which is also using 'loginManager.getLoginInfo' and when we upgraded to Confluence 7 it stopped working. 

Can someone please help to understand what has changed so I can fix our macro?  


Atlassian beefed up the security by not allowing the use of sone java packages in velocity scripts. You can either write a macro using ScriptRunner which allows such things or switch off / allow the use of these packages in the configuration.

aha!  thanks for the update!

Good to know it wasn't my macro itself that failed.  I will check out the other options.

Thanks again,


I modified CONFLUENCE_INSTALL/confluence/WEB-INF/classes/ and made two changes:

#introspector.restrict.packages = java.lang.reflect,\

introspector.restrict.packages = \


#introspector.restrict.classes = java.lang.Class,\


introspector.restrict.classes = \

Like # people like this

I recently upgraded to 7.18.2 and this macro isn't working for me.  I tried the updates to velocity. properties too and that did not work.  Any other suggestions?

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events