diff --git a/README.md b/README.md index 6dd62bfb..f11c3d7c 100755 --- a/README.md +++ b/README.md @@ -597,6 +597,7 @@ scoold.password_auth_enabled = true |`scoold.teams.post_to_space` Pro
Default space on Scoold where questions created on Teams will be published. Set it to `workspace` for using the team's name. | ` ` | `String`| |`scoold.teams.map_channels_to_spaces` Pro
Enable/disable mapping of Teams channels to Scoold spaces. When enabled, will create a Scoold space for each Teams channel. | `false` | `Boolean`| |`scoold.teams.map_workspaces_to_spaces` Pro
Enable/disable mapping of Teams teams to Scoold spaces. When enabled, will create a Scoold space for each Teams team. | `true` | `Boolean`| +|`scoold.teams.private_teams_listing_allowed` Pro
Enable/disable the listing of private teams on the Administration page when configuring notification webhooks for Scoold spaces. | `true` | `Boolean`| |`scoold.teams.max_notification_webhooks` Pro
The maximum number of incoming webhooks which can be created on Scoold. Each webhook links a Teams channel to Scoold. | `10` | `Integer`| |`scoold.teams.default_title` Pro
Default question title for questions created on Teams. | `A question from Microsoft Teams` | `String`| |`scoold.teams.default_question_tags` Pro
Default question tags for questions created on Teams (comma-separated list). | `via-teams` | `String`| diff --git a/docs/teams.html b/docs/teams.html index 2a454d61..bcf0b802 100644 --- a/docs/teams.html +++ b/docs/teams.html @@ -347,9 +347,9 @@

Getting started

1. Visit the Azure Poral, navigate to "App registrations" and create a new multitenant app registration called "Scoold" with the "Web" type selected under "Redirect URI". - If you choose to create a single tenant app registration, you must specify your tenant ID and add - explicit API permissions to your app registration - (Channel.ReadBasic.All, ChannelMessage.Read.All, Group.Read.All, User.Read, email, offline_access, openid, profile). + If you choose to create a single tenant app registration, you must specify your tenant ID and explicitly + add the following API permissions to your app registration: + Channel.ReadBasic.All, ChannelMessage.Read.All, Group.Read.All, User.ReadBasic.All, email, offline_access, openid, profile.

In the "Certificates and Secrets" tab, create a new client secret and take note of the secret key. Then go to the "Overview" tab and take note of the "Application (client) ID". Add these two values to @@ -401,7 +401,8 @@

Getting started

  • 6. On the same page, click the "Download app package" button. Download the Zip file and sideload it in Teams - go to the Teams app catalog and click "Upload a custom app > Upload for me or my teams" - at the bottom-left and select the Scoold.zip package. + at the bottom-left and select the Scoold.zip package. Repeat this step for every team + where you want to receive notifications from Scoold.
  • 7. Click the "Add to team" button and select the team/channel where you want the Scoold app installed. diff --git a/src/main/java/com/erudika/scoold/ScooldConfig.java b/src/main/java/com/erudika/scoold/ScooldConfig.java index 14880b43..65c4478b 100644 --- a/src/main/java/com/erudika/scoold/ScooldConfig.java +++ b/src/main/java/com/erudika/scoold/ScooldConfig.java @@ -3048,6 +3048,18 @@ public boolean teamsMapWorkspacesToSpaces() { return getConfigBoolean("teams.map_workspaces_to_spaces", true); } + @Documented(position = 2781, + identifier = "teams.private_teams_listing_allowed", + value = "true", + type = Boolean.class, + category = "Microsoft Teams Integration", + tags = {"Pro"}, + description = "Enable/disable the listing of private teams on the Administration page " + + "when configuring notification webhooks for Scoold spaces.") + public boolean teamsPrivateTeamsListingAllowed() { + return getConfigBoolean("teams.private_teams_listing_allowed", true); + } + @Documented(position = 2790, identifier = "teams.max_notification_webhooks", value = "10",