Community
Showing results for 
Search instead for 
Do you mean 
Reply

Get Security tole of current user.

Copper Contributor
Posts: 61
Country: United_Kingdom

Get Security tole of current user.

Hello, 

 

I need to get the security role of the current user as I want my plugin to behave differently depending on this.

 

Can anyone help with this. 

 

I've viewed both the SDK from act.com and Sage.co.uk.

 

Thanks,

 

SS

Bronze Super Contributor
Posts: 1,231
Country: USA

Re: Get Security tole of current user.

Try this:

If ACTFramework.Users.GetUser(ACTFramework.Contacts.GetMyRecord().ID).Role = ACTFramework.Roles.Role_Administrator Then

  '' CODE HERE is the user is an admistrator

End If

 

 

Hope this helps

-- Jim Durkin