< Back

Set-OneLoginUserCustomAttribute

Sat Jan 18, 2020 6:06 pm

NAME Set-OneLoginUserCustomAttribute



SYNOPSIS

Sets the value of custom attributes.





SYNTAX

Set-OneLoginUserCustomAttribute [<CommonParameters>]





DESCRIPTION

Sets or modifies the value of custom attributes for a OneLogin user. Can also be used to add a custom attribute

for a user.





PARAMETERS

-Identity <>

Specifies a OneLogin user who you'd like to modify.



Required? false

Position? named

Default value None

Accept pipeline input? false

Accept wildcard characters? false



-CustomAttributes <>

Specifies the custom attributes and their values that will be applied to the user. The value of this parameter

argument should be in the form of a PowerShell hashtable, with the key representing the name of the custom

attribute, and the value being the custom attribute's value.



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



NOTES









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



Get-OneLoginUser -Identity 123456 | Set-OneLoginUserCustomAttribute -CustomAttributes @{employeeType =

"Contractor"}



This example shows howto modify the value of the employeeType custom attribute for a user.



RELATED LINKS

OneLogin users https://developers.onelogin.com/api-doc ... r-resource

OneLogin custom attributes https://developers.onelogin.com/api-doc ... attributes