mayank
11 years agoAce
how can i check login user id
<#assign aUser=rest("/users/id/${user.id}").value/>
<span>${aUser} </span>
<#assign aUser=rest("/users/id/${user.id}").user/>
<span>${aUser} </span>
Both not working...i want to fetch login user id in free marker language..
Hi Mayank,
You can use,
<#assign GroupList = rest("/groups/list") />
it will give you list of groups that are accessible to the logged in user.
please refer:
http://lithosphere.lithium.com/t5/rest-api/bd-p/developers-rest-api?leaf-id=Community.groups#Community.groups.list
hope it helps you.
If so please accept it as solution.