0 votes

Hello Adaxes Team!

Is there a way to copy the users in one group to another group in the same domain without script? If not, is there already a solution with a script & custom command?

Scenario: Both groups already exist and should be selected in the copy mask.

Much appreciated, Marco

by (60 points)
0

Hello Marco,

What exactly do you mean by copy the users? Do you need membership in both groups to always be the same? If not, please, describe how the copying should be performed (e. g. should members of the first group fully override those of the second group).

0

Hello,

membership in both groups don't need to be the same. Only adding the members from group1 to group2 without overwriting.

Thanks.

1 Answer

0 votes
by (289k points)

Hello Marco,

Thank you for clarifying. Have a look at the following script from our repository: https://www.adaxes.com/script-repository/add-members-of-the-target-group-to-the-specified-one-s661.htm. Unfortunately, there is no possibility to achieve the desired without using a script. Also, you can automate the process using the following script from our repository: https://www.adaxes.com/script-repository/add-remove-object-from-group-upon-adding-removing-it-from-another-group-s469.htm.

0

Hello,

is there a way to select the source and destination group manually in the creation mask itself?

In my "Copy group membership from one user to another" it is configured like this:

  1. Selection of the target user: 2022-04-15 10_21_56-Window.png

  2. Selection of the source user: 2022-04-15 10_22_41-Window.png

Can you modify the script that I can select the group manually in the WebUI with fields like shown above?

Because in the first article you specify the group in the script. I need to select the group manually. script line: $targetGroupDN = "CN=My Group,OU=Groups,DC=domain,DC=com" # TODO: modify me

The goal is to let the Helpdesk Admins copy/add the group members from one group to another. They should be able to specify the regarding groups manually. the group should not be specified in the script.

I hope you can understand my demand.

Much appreciated,

Marco

0

Hello Marco,

Yes, it is possible. There is no need to make any changes in the script. You will need to use a custom command configured for the Group object type with a parameter for selecting the group to copy members to. For information on how to create custom commands, see https://www.adaxes.com/tutorials_ActiveDirectoryManagement_CreateCustomCommand.htm. As for the $targetGroupDN variable in the script, it should be set to a value reference for the parameter used to select the target group. For example:

$targetGroupDN = "%param-group%" # TODO: modify me
0

Yeah. That's exactly what I needed. Thanks for the help!

Related questions

0 votes
0 answers

We have users with group memberships in multiple domain. All groups are type Universal. For example we have DOMAIN A and child domains for each dept, such as ... group memberships during user account copy, including memberships from other domains? Thank you,

asked Sep 10, 2020 by maliguinem (20 points)
0 votes
1 answer

Hello Back when we first started using Adaxes you created a couple of great scripts which worked together really well, the first one copied one users group membership and put in ... an addition to what groups the second user is already a member of? Thank you.

asked Aug 4, 2015 by CBurn (700 points)
0 votes
1 answer

Hi there, i know the multiple ways of copying the user groups - or all of them within the user creation wizard. I want to copy only a couple of groups ... is it possible to create an approval operation out of an powershellscript? Kind regards, Constantin

asked May 27, 2021 by Constey (190 points)
0 votes
1 answer

Currently, when I disable a user account in Adaxes, the group memberships of the user remain intact. I'd like to automate the removal of group memberships such as distribution ... a list of groups/DL that the user was previously in and removed from. Thanks!

asked Nov 3, 2021 by jayden.ang (20 points)
0 votes
1 answer

I have a scheduled task that runs a Powershell script against an AD group, "Group 1". I need to get all of the members of Group 1, and add them to Group 2. The ... identity in the error message start with 'user;'? What is the correct way to accomplish this?

asked Aug 27, 2019 by ngb (290 points)
3,548 questions
3,238 answers
8,232 comments
547,813 users