< Back

Get-OneLoginUserRole

Sat Jan 18, 2020 6:06 pm

NAME Get-OneLoginUserRole



SYNOPSIS

Returns the OneLogin roles that have been assigned to a user.





SYNTAX

Get-OneLoginUserRole [<CommonParameters>]





DESCRIPTION

Returns the OneLogin roles that have been assigned to a user. These roles may be assigned automatically via

mappings, or manually assigned by an administrator.





PARAMETERS

-Identity <>

Specifies the user whose role assignments you'd like to discover.



Required? false

Position? named

Default value None

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

OneLoginUser







OUTPUTS

OneLoginRole







NOTES









---------- -------------- Example 1 -------------- ----------



PS C:\\> Get-OneLoginUser -Identity 123456 | Get-OneLoginUserRole



This example shows how to retrieve the role assignments for a single user.

---------- -------------- Example 2 -------------- ----------



PS C:\\> Get-OneLoginUser -Filter @{email = "George*"} | Get-OneLoginUserRole



This example shows how to retrieve the role assignments for multiple users.



RELATED LINKS

OneLogin roles https://developers.onelogin.com/api-doc ... /get-roles

OneLogin user roles https://developers.onelogin.com/api-doc ... s-for-user