Variables in Policies or Powershell Scripts #1818
Closed
jleroxGWNTC
started this conversation in
General
Replies: 1 comment
-
Big ask and more of a feature request - We're working on something for this in the background but currently don't have it yet. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a peak through the documentation, but I wanted to see if where possible to have variables or calls relative to the client in policies or scripts. For example, we want to deploy a [email protected] shared mailbox that then forwards to an internal mailbox which is organised by client code. Client ABC would be [email protected] (now this isn't overly important just helps sorts items when they arrive)
So we need to create a shared mailbox, super easy in powershell, then we need to have a outbound filter policy that allows [email protected] to forward to [email protected] or preferably [email protected]. I know we can't manage Outbound Spam Policies in CIPP, but to create the policy and then place it with powershell, I want to pass on @client.tld and client. Or is there a way to manage this or run the script from CIPP?
Would it be best to pull the default client domain and do if =clienta.onmicrosoft.com then $CLIENTCODE = ABC else if;
obviously in a better structure than that.
Beta Was this translation helpful? Give feedback.
All reactions