Powershell add user to allowed senders list

On a hybrid environment I have a group that allowed only certain senders  , I need to add a user to it.

When the user attempts to send an email they get this: "The Group ******* only accepts messages from people on it's allowed senders list, and your email address isn't on the list."

and when I try to do it through the office 365 portal I get this error (see image)

What is the command in powershell to complete this task?
error1.jpeg
LVL 1
alonig1Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

footechCommented:
The distribution group will be restricted so that only members of the security group can send to it.  So to change the membership you wouldn't be changing the distribution group, you would only be changing the membership of the security group in your AD.  And that should be easy to do just using ADUC.  If you really want to use PS to modify the group membership, it would be the Add-ADGroupMember cmdlet.  Something like:
Add-ADGroupMember -Identity "secgroup" -Members "jdoe"

Open in new window

0
alonig1Author Commented:
Thats the group membership not the allowed senders.
0
footechCommented:
The group membership of the security group is the allowed senders.

Edit:  I suppose they could be separate, i.e. you could add the user individually to be allowed to send to the distribution group, but is there a compelling reason to do so instead of just adding the user to the security group?
0
Webinar: Miercom Evaluates Wi-Fi Security

It's not just about Wi-Fi connectivity anymore. A wireless security breach can cost your business large amounts of time, trouble, and expense. Plus, hear first-hand from Miercom how WatchGuard's Wi-Fi security stacks up against the competition in our upcoming webinar!

alonig1Author Commented:
No.

There is a group and members of that group - thats the regular thing.

There are certain people/users that are allowed to send email to that group, other users will attempts to send will get a reply that they are not allowed to send emails to that group.
0
footechCommented:
I get the feeling that we're talking past each other.
Are you saying that instead of assigning a security group as the allowed senders to the distribution group, you have only set individual users?
0
alonig1Author Commented:
I don't understand.

There is a distribution group , that only specific senders are allowed to send to that group.
0
alonig1Author Commented:
see attached image.
ee2.jpg
0
footechCommented:
There is a distribution group , that only specific senders are allowed to send to that group.
Yes, that has been clear from the very beginning.

Is each one of the blurred entries an individual user?

Your allowed senders can either include individual accounts, or it can include security groups (in which case each member of the security group is allowed).
0
footechCommented:
Regardless of your answer, as I mentioned before if you have it set to a security group you can just change that group's membership.

If you want to add the individual user (or add another group), you have the edit the dlMemSubmitPerms attribute of the distribution group in your AD to add the account's or group's distinguishedName.
0
alonig1Author Commented:
No.

I tried to add a member to that group the person receives the emails of that group but still won't be allowed to send to that group.

the group has two features the regular thing of being part of a group and receiving emails , but also a different list of allowed senders list.
0
alonig1Author Commented:
see image.
ee3.jpg
0
footechCommented:
I don't know why you're not understanding me.  I never said that adding the user to the distribution group would mean that they could send to it.  Do you know the difference between a security group and a distribution group?  And even if you're not using a security group to restrict who can send to the distribution group, I already gave the instructions for how to add an individual account to the permissions.
0
alonig1Author Commented:
Found the solution:

On ADSI:
find the Distribution Group  --> proprieties

The Value is : authOrig

Add the user..
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
footechCommented:
Worked for the asker.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Powershell

From novice to tech pro — start learning today.