Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add new script Add-SsoExclusionsFromCSV #24

Merged
merged 2 commits into from
Aug 9, 2023
Merged

Conversation

skeller-tv
Copy link
Contributor

add a new script to import sso email exclusions from csv file


.DESCRIPTION
The script fetches a list of SSO domains you have configured, loads the CSV file,
will check for email addresses for each of your domains in hte CSV and add them to the exclusion list of their repective domain

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo hte --> the

Column name where to find emails in imported csv file

.EXAMPLE
.\Add-SsoExclusionsFromCSV -csvPath 'c:\ps playground\test.csv' -HeaderName 'Email' -WhatIf

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't the example missing the api token? Or should this be in the CSV

param($csvPath, $HeaderName)

#import emails fom csv
$users = Import-Csv -Path $csvPath

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

proposal: Naming row

@skeller-tv skeller-tv merged commit 3d762e9 into master Aug 9, 2023
1 check passed
@ChristianJ-TV ChristianJ-TV deleted the SsoExclusionsFromCSV branch August 9, 2023 18:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants