< Back

Set-LinaCurrentTenant

Fri Jan 10, 2020 9:27 pm

NAME Set-LinaCurrentTenant



SYNOPSIS

Set the current tenant





SYNTAX

Set-LinaCurrentTenant -ID <String> [<CommonParameters>]



Set-LinaCurrentTenant [-lina_tenant <PSObject>] [<CommonParameters>]



Set-LinaCurrentTenant -Name <String> [<CommonParameters>]



Set-LinaCurrentTenant -All [<CommonParameters>]





DESCRIPTION

Set the current tenant. When set, all listings and actions will be executed and filtered inside this tenant.

To set the global view (view across all tenants), use the -All switch.





PARAMETERS

-lina_tenant <PSObject>



Required? false

Position? named

Default value

Accept pipeline input? true (ByValue)

Accept wildcard characters? false



-ID <String>

ID of the tenant to set



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Name <String>

Name of the tenant to set



Required? true

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-All [<SwitchParameter>]

Switch to set the global view (view across all tenants). Available for superadmin only.



Required? true

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

LinaTenant Object





OUTPUTS

None





-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-LinaTenant -Name "MyTenant" | Set-LinaCurrentTenant



Set the current tenant to MyTenant









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Set-LinaCurrentTenant -All



Enable global view across all tenants (superadmin only)









-------------------------- EXAMPLE 3 --------------------------



PS C:\\>Set-LinaCurrentTenant -ID 2



Set the current tenant to Tenant with ID 2











RELATED LINKS