Hi.
You can manage buttons to be visible/enabled or nonvisible/disabled for all users.
You can use this code:
Sub EnterModule 'Use ActiveModule and ActiveDialogName to get 'the current context. On Error Resume Next Select Case ActiveModule Case "Requirements" '- Allow action by Group If User.IsInGroup("QA Manager") Or _ User.IsInGroup("Dev Manager") Or _ User.IsInGroup("Dev Lead") Or _ User.IsInGroup("TDAdmin") Then '- execute script for REQ attachments Actions.Action("UserDefinedActions.REQattachments").Visible = true Else Actions.Action("UserDefinedActions.REQattachments").Visible = false 'Actions.Action("UserDefinedActions.REQattachments").Enabled = false End If End select On Error GoTo 0 End Sub
Br, Tomas
[If my advice solves your issue or query, please mark the thread as solved. Clicking on KUDOS star is the best way how to say thank you.]