Skip to main content
SnapCenter 4.9 cmdlets

Remove-SmResourceFromUser

Contributors

Removes a SnapCenter resource assigned to specified user.

Syntax

Remove-SmResourceFromUser [-UserName]  <String>  [-ResourceNames]  <String>  [-ResourceType]  <OperationAssignmentType>  [-UserGroupObjectType]  <SmUserGroupObjectType>

Detailed Description

Remove a SnapCenter resource assigned to specified user.

Parameters

Name Description Required? Pipeline Input Default Value

UserName

Name of the domain\user.

true

true (ByPropertyName)

ResourceNames

Name of the resources to be removed. Allow comma seperated resources names.The resource name is the policy name, resource group name, storage connection name, credential name, host name or IP address, or plug-in name created by the user.

true

true (ByPropertyName)

ResourceType

Type of resource. The SnapCenter resource types are Credential, Host, ResourceGroup, Policy, StorageConnection or Plugin.

true

true (ByPropertyName)

UserGroupObjectType

Specifies the user type whose resources are removed. Possible values are User or Group.

false

true (ByPropertyName)

Examples

Example 1: Removing a specific resource from a user

 Remove-SmResourceFromUser -ResourceNames PayrollDataset -ResourceType ResourceGroup -UserName mva\administrator

This example syntax removes the specified resource name from the user indicated.

Remove-SmResourceFromUser
Are you sure want to perform this action?
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is "Y"):y

Example 2: Removing a specific resource from a user without confirmation dialogue

 Remove-SmResourceFromUser -ResourceNames PayrollDataset -ResourceType ResourceGroup -UserName mva\administrator -Confirm:$false

This example syntax removes the specified resource name from the user indicated.

Example 3: Removing a specific resource from a group.

 Remove-SmResourceFromUser -ResourceNames PayrollDataset -ResourceType ResourceGroup -UserName mva\group1 -UserGroupObjectType Group

This example syntax removes the specified resource name from the identified group.