New-LMRole
Syntax
Section titled “Syntax”Default (Default)
Section titled “Default (Default)”New-LMRole -Name <string> [-CustomHelpLabel <string>] [-CustomHelpURL <string>] [-Description <string>] [-RequireEULA] [-TwoFARequired <bool>] [-RoleGroupId <string>] [-DashboardsPermission <string>] [-ResourcePermission <string>] [-LogsPermission <string>] [-WebsitesPermission <string>] [-SavedMapsPermission <string>] [-ReportsPermission <string>] [-LMXToolBoxPermission <string>] [-LMXPermission <string>] [-SettingsPermission <string>] [-CreatePrivateDashboards] [-AllowWidgetSharing] [-ConfigTabRequiresManagePermission] [-AllowedToViewMapsTab] [-AllowedToManageResourceDashboards] [-ViewTraces] [-ViewSupport] [-EnableRemoteSessionForResources] [-WhatIf] [-Confirm] [<CommonParameters>]Custom
Section titled “Custom”New-LMRole -Name <string> -CustomPrivilegesObject <psobject> [-CustomHelpLabel <string>] [-CustomHelpURL <string>] [-Description <string>] [-RequireEULA] [-TwoFARequired <bool>] [-RoleGroupId <string>] [-WhatIf] [-Confirm] [<CommonParameters>]Description
Section titled “Description”The New-LMRole function creates a new Logic Monitor role with the specified privileges and settings. It allows you to customize various permissions and options for the role.
Examples
Section titled “Examples”EXAMPLE 1
Section titled “EXAMPLE 1”New-LMRole -Name "MyRole" -Description "Custom role with limited permissions" -DashboardsPermission "view" -ResourcePermission "manage"This example creates a new Logic Monitor role named “MyRole” with a description and limited permissions for dashboards and resources.
Parameters
Section titled “Parameters”-AllowedToManageResourceDashboards
Section titled “-AllowedToManageResourceDashboards”Indicates whether the role can manage resource dashboards.
Type: System.Management.Automation.SwitchParameterDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-AllowedToViewMapsTab
Section titled “-AllowedToViewMapsTab”Indicates whether the role can view the Maps tab.
Type: System.Management.Automation.SwitchParameterDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-AllowWidgetSharing
Section titled “-AllowWidgetSharing”Indicates whether the role can share widgets.
Type: System.Management.Automation.SwitchParameterDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ConfigTabRequiresManagePermission
Section titled “-ConfigTabRequiresManagePermission”Indicates whether the role requires manage permission for the Config tab.
Type: System.Management.Automation.SwitchParameterDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Confirm
Section titled “-Confirm”Prompts you for confirmation before running the cmdlet.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- cfParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-CreatePrivateDashboards
Section titled “-CreatePrivateDashboards”Indicates whether the role can create private dashboards.
Type: System.Management.Automation.SwitchParameterDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-CustomHelpLabel
Section titled “-CustomHelpLabel”Specifies a custom label for the help button in the Logic Monitor UI.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Custom Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-CustomHelpURL
Section titled “-CustomHelpURL”Specifies a custom URL for the help button in the Logic Monitor UI.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Custom Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-CustomPrivilegesObject
Section titled “-CustomPrivilegesObject”Specifies a custom privileges object for the role.
Type: System.Management.Automation.PSObjectDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Custom Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-DashboardsPermission
Section titled “-DashboardsPermission”Specifies the permission level for dashboards. Valid values are “view”, “manage”, or “none”. Default value is “none”.
Type: System.StringDefaultValue: noneSupportsWildcards: falseAliases: []ParameterSets:- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-Description
Section titled “-Description”Specifies a description for the role.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Custom Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-EnableRemoteSessionForResources
Section titled “-EnableRemoteSessionForResources”Indicates whether the role can enable remote session for resources.
Type: System.Management.Automation.SwitchParameterDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-LMXPermission
Section titled “-LMXPermission”Specifies the permission level for LMX. Valid values are “view”, “install”, or “none”. Default value is “none”.
Type: System.StringDefaultValue: noneSupportsWildcards: falseAliases: []ParameterSets:- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-LMXToolBoxPermission
Section titled “-LMXToolBoxPermission”Specifies the permission level for LMX Toolbox. Valid values are “view”, “manage”, “commit”, “publish”, or “none”. Default value is “none”.
Type: System.StringDefaultValue: noneSupportsWildcards: falseAliases: []ParameterSets:- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-LogsPermission
Section titled “-LogsPermission”Specifies the permission level for logs. Valid values are “view”, “manage”, or “none”. Default value is “none”.
Type: System.StringDefaultValue: noneSupportsWildcards: falseAliases: []ParameterSets:- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''Specifies the name of the role.
Type: System.StringDefaultValue: ''SupportsWildcards: falseAliases: []ParameterSets:- Name: Default Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Custom Position: Named IsRequired: true ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ReportsPermission
Section titled “-ReportsPermission”Specifies the permission level for reports. Valid values are “view”, “manage”, or “none”. Default value is “none”.
Type: System.StringDefaultValue: noneSupportsWildcards: falseAliases: []ParameterSets:- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-RequireEULA
Section titled “-RequireEULA”Indicates whether the user must accept the End User License Agreement (EULA) before using the role.
Type: System.Management.Automation.SwitchParameterDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: Custom Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ResourcePermission
Section titled “-ResourcePermission”Specifies the permission level for resources. Valid values are “view”, “manage”, or “none”. Default value is “none”.
Type: System.StringDefaultValue: noneSupportsWildcards: falseAliases: []ParameterSets:- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-RoleGroupId
Section titled “-RoleGroupId”Specifies the ID of the role group to which the role belongs. Default value is 1.
Type: System.StringDefaultValue: 1SupportsWildcards: falseAliases: []ParameterSets:- Name: Custom Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-SavedMapsPermission
Section titled “-SavedMapsPermission”Specifies the permission level for saved maps. Valid values are “view”, “manage”, or “none”. Default value is “none”.
Type: System.StringDefaultValue: noneSupportsWildcards: falseAliases: []ParameterSets:- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-SettingsPermission
Section titled “-SettingsPermission”Specifies the permission level for settings. Valid values are “view”, “manage”, “none”, “manage-collectors”, or “view-collectors”. Default value is “none”.
Type: System.StringDefaultValue: noneSupportsWildcards: falseAliases: []ParameterSets:- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-TwoFARequired
Section titled “-TwoFARequired”Indicates whether two-factor authentication is required for the role. Default value is $true.
Type: System.BooleanDefaultValue: TrueSupportsWildcards: falseAliases: []ParameterSets:- Name: Custom Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: false- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ViewSupport
Section titled “-ViewSupport”Indicates whether the role can view support.
Type: System.Management.Automation.SwitchParameterDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-ViewTraces
Section titled “-ViewTraces”Indicates whether the role can view traces.
Type: System.Management.Automation.SwitchParameterDefaultValue: FalseSupportsWildcards: falseAliases: []ParameterSets:- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-WebsitesPermission
Section titled “-WebsitesPermission”Specifies the permission level for websites. Valid values are “view”, “manage”, or “none”. Default value is “none”.
Type: System.StringDefaultValue: noneSupportsWildcards: falseAliases: []ParameterSets:- Name: Default Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''-WhatIf
Section titled “-WhatIf”Runs the command in a mode that only reports what would happen without performing the actions.
Type: System.Management.Automation.SwitchParameterDefaultValue: ''SupportsWildcards: falseAliases:- wiParameterSets:- Name: (All) Position: Named IsRequired: false ValueFromPipeline: false ValueFromPipelineByPropertyName: false ValueFromRemainingArguments: falseDontShow: falseAcceptedValues: []HelpMessage: ''CommonParameters
Section titled “CommonParameters”This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.