Is there anyway or predefined variable to get position value in confluence?

Hi,

Is there anyway or predefined variable to get position value in user macro?

Because I want to display pages based on user levels

ex: if the user level is administrator then he will be able to access all the sections,

if the user level is manager then he/she will have access for manager area

Please do let me know if you have any similar example.

Regards

Sudarshan

3 answers

I'm not sure I understand your use of the terms "position value" and "manager area" and "sections". Can you please provide more details about what you mean by these?

Are you aware of the Visibility plugin from ServiceRocket?

Hi Matthew,

I have created a custom HTML menu in my wiki pages using user macro, but now I would like use conditions to display some of them which is some thing based on their designation. However here I found that position will be consider as designation and I would like to pull the value of that through predefined variable.

eg:

if(position == 'manager'){

<li><a href="manager">Manager</a></li>

}else if(position == 'teamlead'){

<li><a href="teamlead">Team Lead</a></li>

}else{

<li><a href="menu1">menu1</a></li>

<li><a href="menu2">Menu2</a></li>

}

To achieve similar to above example I need the value of that position which will be pulled from confluence database Table.

Please find attached screenshot below

Regards

Sudarshan

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

910 views 23 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you