Permissions
  • 21 Mar 2024
  • 1 Minute to read
  • Dark
    Light
  • PDF

Permissions

  • Dark
    Light
  • PDF

Article summary

Get-LiquitPermission

Synopsis

This command displays a list of all permissions available in the Liquit Workspace. Alternatively, you can use this command to select a certain permission.

Syntax

 Get-LiquitPermission 
[-LiquitContext <LiquitContext>]  
[<CommonParameters>]

 Get-LiquitPermission 
[-ID] <string[]> 
[-LiquitContext <LiquitContext>]  
[<CommonParameters>]

 Get-LiquitPermission 
[-IdentityRef] <IdentityRef[]> 
[-LiquitContext <LiquitContext>] 
[<CommonParameters>]

Examples

Example 1: Get-LiquitPermission

 Get-LiquitPermission 

This command displays all permissions available in the Liquit Workspace.

Example 2: Get-LiquitPermission

 $permission = Get-LiquitPermission -id 00000000-0000-0000-0000-000000000000

This command selects a particular permission.

New-LiquitPermission

Synopsis

This command creates a new permission in the Liquit Workspace.

Syntax

 New-LiquitPermission 
-Identity <Identity> 
-AccessPolicy <AccessPolicy > 
[-LiquitContext <LiquitContext>] 
[-WhatIf] 
[-Confirm]  
[<CommonParameters>]

Example

 $accesPolicy = Get-LiquitAccessPolicy -ID 00000000-0000-0000-0000-000000000000
 $identity = Get-LiquitIdentity -id "Source\00000000-0000-0000-0000-000000000000"
 New-LiquitPermission -Identity $identity -AccessPolicy $accesPolicy

This command creates a new permission within Liquit Workspace.

Parameters

NameValueDescriptionRequiredDefault value
Identity<Identity>The identity you want to assign permissions within Liquit Workspace.Yes
AccessPolicy<AccessPolicy>The access policy you want to apply to the identity.Yes
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

Set-LiquitPermission

Synopsis

This command lets you edit the properties of a permission.

Syntax

 Set-LiquitPermission 
-Permission <Permission[]> 
-AccessPolicy <AccessPolicy> 
[-LiquitContext <LiquitContext>] 
[-WhatIf] 
[-Confirm]  
[<CommonParameters>]

 Set-LiquitPermission 
-Identity <Identity[]> 
-AccessPolicy <AccessPolicy> 
[-LiquitContext <LiquitContext>] 
[-WhatIf] 
[-Confirm] 
[<CommonParameters>]

Example

 $permission = Get-LiquitPermission -id 00000000-0000-0000-0000-000000000000
 $accesPolicy = Get-LiquitAccessPolicy -ID 00000000-0000-0000-0000-000000000000
 Set-LiquitPermission -AccessPolicy $accesPolicy -Permission $permission

This command grants the specified permission to the specified access policy.

Parameters

NameValueDescriptionRequiredDefault value
Permission<Permission[]>The permission you want to edit.Yes
Identity<Identity>The identity you want to assign permissions within Liquit Workspace.Yes
AccessPolicy<AccessPolicy>The access policy you want to use for the identity.Yes
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

Remove-LiquitPermission

Synopsis

This command removes an entitlement from a package.

Syntax

 Remove-LiquitPermission 
-Permission <Permission[]> 
[-LiquitContext <LiquitContext>] 
[-WhatIf] 
[-Confirm]  
[<CommonParameters>]

 Remove-LiquitPermission 
-Identity <Identity[]> 
[-LiquitContext <LiquitContext>] 
[-WhatIf] 
[-Confirm]  
[<CommonParameters>]

Example

 $permission = Get-LiquitPermission -id 00000000-0000-0000-0000-000000000000
 Remove-LiquitPermission -Permission $permission 

This command removes the selected permission.

Parameters

NameValueDescriptionRequiredDefault value
Permission<Permission[]>The permission you want to remove.Yes
Identity<Identity>The identity from which you want to remove permissions.Yes
LiquitContext<LiquitContext>Determines the selected zone.NoDefault

Was this article helpful?