Forum Discussion
RogersRoland
Expert
So i was able to resolve the role issue but changing from administrator to moderator instead. It worked better for our Community setup.
I did however encounter an error now that I pushed the update live.
I am currently running
<#assign qry = "select email from users where id = '${user.id}'" /> <#assign email = rest("2.0", "/search?q=" + qry?url + "&restapi.response_style=view").data.items[0].email /> <span class="label">Email:</span> <span class="value">${email}</span>
However the result for email result is my own. Did i input something wrong?
VarunGrazitti
8 years agoBoss
RogersRoland - You are using the context object ${user.id} which brings your own ID. You need to pass the ID of the user for whom you want to fetch the email.
Related Content
- 5 years ago
- 3 years ago
- 10 months ago