-
Notifications
You must be signed in to change notification settings - Fork 7
Description
Description
Task throws exception when adding user to an empty group in Active Directory.
Example result:
ClassName
System.Exception
Message
AddUserToGroups error: System.Collections.Generic.KeyNotFoundException: The given key 'member' was not present in the dictionary.
at Frends.LDAP.AddUserToGroups.LDAP.UserExistsInGroup(LdapConnection connection, String userDn, String groupDn, CancellationToken cancellationToken)
at Frends.LDAP.AddUserToGroups.LDAP.AddUserToGroups(Input input, Connection connection, CancellationToken cancellationToken)
StackTraceString
at Frends.LDAP.AddUserToGroups.LDAP.AddUserToGroups(Input input, Connection connection, CancellationToken cancellationToken)
at Frends.ExecutableProcess.frends_FrendsTemp.frends_FrendsTemp.Execute(Object triggerDetails, Object environmentVariables, Object processVariables, Object process, CancellationToken cancellationToken, Func`3 executeSubprocessAsync, Func`3 executeSharedStateCommandAsync, LogLevel logLevel) in Frends.ExecutableProcess.frends_FrendsTemp.cs:line 58
InnerException
null
To reproduce
- Have empty group in Active Directory
- Run task to add user to the empty group
- 😟
Workaround
Add a member to the group by a different means. Task appears to function as long as "member" attribute is not empty.