LDAP

Frends.LDAP.AddUserToGroups / 2.1.0

Summary

Adds a user object to several groups in one call, and decides how to treat memberships that already exist.

Typical use — joiner and mover provisioning, where tolerating existing memberships makes the Process safe to re-run

Details

Frends version
5.5 and newer
Agent
Crossplatform
Target framework
net6.0

Input parameters.

Name Type Default Example Description
UserDistinguishedName String CN=Tes Tuser,ou=users,dc=wimpi,dc=net

User's distinguished name (DN)

GroupDistinguishedNames String[] new[] { "cn=admin,ou=roles,dc=wimpi,dc=net", "cn=developers,ou=roles,dc=wimpi,dc=net" }

Group distinguished name(s) (DN) to add the user to. Can specify one or multiple groups.

UserExistsAction UserExistsAction Throw UserExistsAction.Throw

Handle user exists exception.

Possible values:

  • Throw: Throw an error.

  • Skip: Do nothing and add LDAP error message to the task's result.

An unhandled error has occurred. Reload 🗙