Re: O365 - ADSync and groups

2021-04-17 Thread Alexander Noack

What's the ultimate goal? Merely adding another group to the user or to
add the group address to the user? Assuming it's the latter, then you
may skip adding the group, simply just add the Public Folder email 
addresses

to the selected users.

Anyway, I may extend the auth_data array with the groups, if it's the
more elegant and effective solution to your problem.

Janos


Since I don't have the Public folder/Distribution-group addresses in 
Active Directory (but in O365 only) it's easy to add a group on Piler 
and attach the Public folder address there.
Then in Active Directory I would add users to a group which represents 
this public folder. If that group could be added to the Piler user 
session, that would be perfect.


But I don't want you to build something that's only useful to me :D
I was just curious where the group information in Piler derives from and 
if I could leverage that myself.


Alex

Re: O365 - ADSync and groups

2021-04-17 Thread sj




On 2021-04-17 00:36, Alexander Noack wrote:

I created a group in Piler by the name of a Public Folder and assigned
the email addresses from the rcpt table for that Public Folder.

Now I am trying to add the Group to the user session via
CUSTOM_EMAIL_QUERY_FUNCTION but apparently the auth_data doesn't have
a group field... :(

I would like to avoid having to add all email addresses of the Public
Folders, is there any way to add a group to the session data?


What's the ultimate goal? Merely adding another group to the user or to
add the group address to the user? Assuming it's the latter, then you
may skip adding the group, simply just add the Public Folder email 
addresses

to the selected users.

Anyway, I may extend the auth_data array with the groups, if it's the
more elegant and effective solution to your problem.

Janos



Piler is setup to do Authentication against MS-ActiveDirectory. All
Mailboxes are hosted on O365, sent to Piler via a Journaling rule.
AD-Sync is setup to sync with Azure-Ad (O365).

Now when I login to Piler (Auto-Login via SSO) I don't see any
additional groups for my user. It looks like for Exchange
On-Premises this attribute would get populated by my
distribution-groups membership. Since Groups created in O365 are not
synced back, they don't exist in my AD.

I know, I can use
https://www.mailpiler.org/wiki/current:custom-authentication to
create group attributes based on arbitrary AD groups. I just would
like to know how other people are tackling that issue.

For Public-Folder email addresses I created Groups within Piler and
assigned users there.

Alex




Re: O365 - ADSync and groups

2021-04-16 Thread Alexander Noack
I created a group in Piler by the name of a Public Folder and assigned 
the email addresses from the rcpt table for that Public Folder.


Now I am trying to add the Group to the user session via 
CUSTOM_EMAIL_QUERY_FUNCTION but apparently the auth_data doesn't have a 
group field... :(


I would like to avoid having to add all email addresses of the Public 
Folders, is there any way to add a group to the session data?


Piler is setup to do Authentication against MS-ActiveDirectory. All 
Mailboxes are hosted on O365, sent to Piler via a Journaling rule. 
AD-Sync is setup to sync with Azure-Ad (O365).


Now when I login to Piler (Auto-Login via SSO) I don't see any 
additional groups for my user. It looks like for Exchange On-Premises 
this attribute would get populated by my distribution-groups 
membership. Since Groups created in O365 are not synced back, they 
don't exist in my AD.


I know, I can use 
https://www.mailpiler.org/wiki/current:custom-authentication to create 
group attributes based on arbitrary AD groups. I just would like to 
know how other people are tackling that issue.


For Public-Folder email addresses I created Groups within Piler and 
assigned users there.


Alex

O365 - ADSync and groups

2021-04-16 Thread Alexander Noack
Piler is setup to do Authentication against MS-ActiveDirectory. All 
Mailboxes are hosted on O365, sent to Piler via a Journaling rule. 
AD-Sync is setup to sync with Azure-Ad (O365).


Now when I login to Piler (Auto-Login via SSO) I don't see any 
additional groups for my user. It looks like for Exchange On-Premises 
this attribute would get populated by my distribution-groups membership. 
Since Groups created in O365 are not synced back, they don't exist in my 
AD.


I know, I can use 
https://www.mailpiler.org/wiki/current:custom-authentication to create 
group attributes based on arbitrary AD groups. I just would like to know 
how other people are tackling that issue.


For Public-Folder email addresses I created Groups within Piler and 
assigned users there.


Alex