Set-RubrikUserRole

SYNOPSIS

Updates an existing users role

SYNTAX

ReadOnlyAdmin

Set-RubrikUserRole -Id <String[]> [-ReadOnlyAdmin] [-Server <String>] [-api <String>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

EndUserRemove

Set-RubrikUserRole -Id <String[]> [-EndUser] [-Remove] [-EventObjects <String[]>]
 [-RestoreWithoutDownloadObjects <String[]>] [-RestoreWithOverwriteObjects <String[]>]
 [-OnDemandSnapshotObjects <String[]>] [-ReportObjects <String[]>] [-RestoreObjects <String[]>]
 [-InfrastructureObjects <String[]>] [-Server <String>] [-api <String>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

EndUserAdd

Set-RubrikUserRole -Id <String[]> [-EndUser] [-Add] [-EventObjects <String[]>]
 [-RestoreWithoutDownloadObjects <String[]>] [-RestoreWithOverwriteObjects <String[]>]
 [-OnDemandSnapshotObjects <String[]>] [-ReportObjects <String[]>] [-RestoreObjects <String[]>]
 [-InfrastructureObjects <String[]>] [-Server <String>] [-api <String>] [-WhatIf] [-Confirm]
 [<CommonParameters>]

NoAccess

Admin

DESCRIPTION

The Set-RubrikUserRole cmdlet is used modify a users role and authorizations to objects within the Rubrik cluster

EXAMPLES

EXAMPLE 1

This will set the specifed users role to admin

EXAMPLE 2

This will set the specifed users role to read only admin. Valid on Rubrik CDM 5.0 and later

EXAMPLE 3

This will set the specifed users role to end user, granting access to restore the specified virtual machine

EXAMPLE 4

This will set the specifed users role to end user, removing access to restore the specified virtual machine

EXAMPLE 5

This will remove all permissions on the Rubrik cluster for the specified user.

PARAMETERS

-Id

User ID

-Admin

Sets users role to Admin

-EndUser

Sets users role to End User

-NoAccess

Sets users role to No Access (Removes all access from user)

-ReadOnlyAdmin

Sets users role to No Access (Removes all access from user)

-Add

Specifies -Privileges should be added to the users authorizations

-Remove

Specifies -Privileges should be removed from the users authorizations

-EventObjects

Event Objects to grant or revoke access to

-RestoreWithoutDownloadObjects

Objects which can be restored, with file download disabled

-RestoreWithOverwriteObjects

Objects which can be restored, overwriting original

-OnDemandSnapshotObjects

Objects allowing On-Demand Snapshots

-ReportObjects

Report objects

-RestoreObjects

Objects which can be restored

-InfrastructureObjects

Infrastructure Objects allowing provisioning of restores/live mounts

-Server

Rubrik server IP or FQDN

-api

API version

-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

-Confirm

Prompts you for confirmation before running the cmdlet.

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

Written by Mike Preston for community usage Twitter: @mwpreston GitHub: mwpreston

https://rubrik.gitbook.io/rubrik-sdk-for-powershell/command-documentation/reference/set-rubrikuserrole

Last updated

Was this helpful?