elopez
13 years agoContributor
trying to apply roles in customer component
I have the following custom component that I am trying to run but unfortunately the rest api is not returning a value. I am simply trying to add the administrator role to a specific user in our community.
<#if activity.results.name.UserSignedOn??>
<#if user.login == "jvcd">
<#assign status=rest("/roles/name/Administrator/users/add/id/${user.id?c}").value />
<span>Status:${status?string}</span>
</#if>