Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

How to set "Logonhours" attribute in Active directory?

yogesh
Regular Contributor III
Regular Contributor III
We have a requirement for setting "Logonhours" in Active directory, this attribute can have hexadecimal value or binary values. But we are not able to pass binary or hexadecimal value. we tried passing as string but no success, other thing we tried as below
"Logonhours" : "${\"0000\":" + hex + "}"
"Logonhours" :"${Integer.parseInt("0000",16)}"
 
We need your help here. The value which we need to pass is as below
 
In Hexadecimal
"000000000000000000000000000000000000000000"
"FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF"
or in binary 
"00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000"
"11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111"
 
This is how it is set at the AD target from UI:
yogesh_1-1655799613338.png

 

3 REPLIES 3

avinashchhetri
Saviynt Employee
Saviynt Employee

Ideally the "Logonhours" in AD should be managed by the Group Policies in AD. LogonHours is an octet String type attribute in AD and Im not sure if the Saviynt AD Connector currently supports this.

 

Regards,

Avinash Chhetri

Regards,
Avinash Chhetri

Belwyn
Saviynt Employee
Saviynt Employee

Hi Yogesh, 

Currently for "Logonhours" attribute hexadecimal value or binary values type is not supported. Please submit a freshdesk ticket with our support team(Refer to this forum post in the ticket) for an Enhancement request.

 

Regards, 
Belwyn.

shibinvpkvr
Regular Contributor II
Regular Contributor II

Is there an enhancement request in place for this? We do have a similar requirement where need to set logonHours to below value upon user termination.

shibinvpkvr_0-1669150830682.png