Zum Hauptinhalt springen

KanBo-PowerShell-Cmdlets

Inhaltsverzeichnis

KanBo-Konfiguration

  1. Erstellen: Paar selbstsignierter Zertifikate.
  2. Öffnen Sie die KanBo-appsettings.json und fügen Sie folgenden Code ein:
{
        "type": "auth.app",
        "issuer": "kanbo-cmdlet",
        "children": [
          {
            "type": "signature",
            "algo": "rs256",
            "children": [
              [
                "cert",
                {
                  "type": "x509-file",
                  "file": "PFX CERT-PATH",
                  "key": "CERT-PASS"
                }
              ]
            ]
          },
          [
            "mapper",
            {
              "type": "user",
              "roles": "security:aad"
            }
          ]
        ]
      },
  1. Ersetzen Sie „PFX CERT-PATH“ durch den Pfad der .pfx-Datei und „CERT-PASS“ durch deren Kennwort.
  2. Speichern Sie appsettings.json und starten Sie KanBo neu.

Cmdlets verwenden

  1. Entpacken Sie die ZIP am gewünschten Ort.

Die Cmdlet-ZIP erhalten Sie nur auf Anfrage.
Bitte kontaktieren Sie uns um sie zu erhalten.

  1. Importieren Sie das Modul mit folgendem Befehl:
Import-Module PATH\KanBo.Cmdlet.dll
  1. Ersetzen Sie „PATH“ durch den Speicherort der entpackten ZIP.
  2. Führen Sie folgende Befehle mit den benötigten Variablen aus. Aufgeführt sind die wichtigsten Parameter; weitere Optionen können verfügbar sein:
  • CertificatePath – vollständiger Pfad zur .pfx-Datei,
  • CertificatePassword – Kennwort der .pfx-Datei,
  • KanBoUrl – KanBo-URL mit „https://“,
  • Issuer – Wert „kanbo-cmdlet“,
  • UserId – ID des KanBo-Benutzers, dessen Identität angenommen wird.

Liste der Cmdlets

Add-Card 

Fügt eine Karte zum angegebenen Space oder Status hinzu. 

Parameter: 

  • CertificatePath (string) – erforderlich 
  • CertificatePassword (string) – erforderlich 
  • KanBoUrl (string) – erforderlich 
  • Issuer (string) – erforderlich 
  • UserId (int) – erforderlich 
  • Name (string) – erforderlich 
  • SpaceId (int) – optional 
  • StatusId (int) – optional 

Ausgabe: None 

Add-Space 

Fügt einen Space zu einem Workspace hinzu und kann optional einen Microsoft-Teams-Kanal erstellen oder anbinden.

Parameter: 

  • CertificatePath (string) – erforderlich 
  • CertificatePassword (string) – erforderlich 
  • KanBoUrl (string) – erforderlich 
  • Issuer (string) – erforderlich 
  • UserId (int) – erforderlich 
  • WorkspaceId (int) – erforderlich 
  • Name (string) – erforderlich 
  • ChannelId (string) – optional 
  • TemplateId (int) – optional 
  • IconColor (int) – optional 
  • Icon (int) – optional 

Ausgabe: SpaceId (int) 

Add-User 

Fügt einen Benutzer zu KanBo hinzu und aktiviert ihn automatisch.

Parameter: 

  • CertificatePath (string) – erforderlich 
  • CertificatePassword (string) – erforderlich 
  • KanBoUrl (string) – erforderlich 
  • Issuer (string) – erforderlich 
  • UserId (int) – erforderlich 
  • LoginType (string) – erforderlich 
  • LoginName (string) – erforderlich 

Ausgabe: AddedUserId (int) 

Add-Workspace

Fügt einen Workspace zu KanBo hinzu und kann optional eine Gruppe oder ein Team erstellen oder anbinden.

Parameter: 

  • CertificatePath (string) – erforderlich 
  • CertificatePassword (string) – erforderlich 
  • KanBoUrl (string) – erforderlich 
  • Issuer (string) – erforderlich 
  • UserId (int) – erforderlich 
  • Name (string) – erforderlich 
  • GroupId (string) – optional

Ausgabe: WorkspaceId (int) 

Close-Space 

Schließt den Space anhand seiner ID. 

Parameter:

  • CertificatePath (string) – erforderlich 
  • CertificatePassword (string) – erforderlich 
  • KanBoUrl (string) – erforderlich 
  • Issuer (string) – erforderlich 
  • UserId (int) – erforderlich 
  • SpaceId (int) – erforderlich 

Ausgabe: None 

Get-SpaceTemplates

Ruft eine Liste der KanBo-Vorlagen ab.

Parameter:

  • CertificatePath (string) – erforderlich 
  • CertificatePassword (string) – erforderlich 
  • KanBoUrl (string) – erforderlich 
  • Issuer (string) – erforderlich 
  • UserId (int) – erforderlich 

Ausgabe: Templates (List) 

Get-User

Ruft einen KanBo-Benutzer anhand seiner ID ab. 

Parameter: 

  • CertificatePath (string) – erforderlich 
  • CertificatePassword (string) – erforderlich 
  • KanBoUrl (string) – erforderlich 
  • Issuer (string) – erforderlich 
  • UserId (int) – erforderlich 
  • Id (int) – erforderlich 

Ausgabe: User (User)

Get-Workspace 

Ruft einen Workspace anhand einer M365-Gruppen-ID ab. 

Parameter:

  • CertificatePath (string) – erforderlich 
  • CertificatePassword (string) – erforderlich 
  • KanBoUrl (string) – erforderlich 
  • Issuer (string) – erforderlich 
  • UserId (int) – erforderlich 
  • GroupId (string) – erforderlich 

Ausgabe: Workspaces (Dictionary<int, string>) 

Disable-User 

Deaktiviert einen KanBo-Benutzer anhand seines Profilschlüssels.

Parameter: 

  • CertificatePath (string) – erforderlich 
  • CertificatePassword (string) – erforderlich 
  • KanBoUrl (string) – erforderlich 
  • Issuer (string) – erforderlich 
  • UserId (int) – erforderlich 
  • ProfileKey (string) – erforderlich 

Ausgabe: None

Remove-Space

Löscht einen KanBo-Space und entfernt optional zugehörige MS-Teams-Ressourcen.

Parameter:

  • CertificatePath (string) – erforderlich 
  • CertificatePassword (string) – erforderlich 
  • KanBoUrl (string) – erforderlich 
  • Issuer (string) – erforderlich 
  • UserId (int) – erforderlich 
  • SpaceId (int) – erforderlich 
  • RemoveResources (bool) – erforderlich 

Ausgabe: None 

Remove-SpacesFromWorkspace 

Entfernt alle Spaces eines Workspace und optional zugehörige MS-Teams-Ressourcen.

Parameter: 

  • CertificatePath (string) – erforderlich 
  • CertificatePassword (string) – erforderlich 
  • KanBoUrl (string) – erforderlich 
  • Issuer (string) – erforderlich 
  • UserId (int) – erforderlich 
  • WorkspaceId (int) – erforderlich 
  • RemoveResources (bool) – erforderlich 

Ausgabe: None

Remove-Workspace

Entfernt einen KanBo-Workspace und optional zugehörige MS-Teams-Ressourcen.

Parameter:

  • CertificatePath (string) – erforderlich 
  • CertificatePassword (string) – erforderlich 
  • KanBoUrl (string) – erforderlich 
  • Issuer (string) – erforderlich 
  • UserId (int) – erforderlich 
  • WorkspaceId (int) – erforderlich 
  • RemoveResources (bool) – erforderlich

Ausgabe: None 

Set-UserLicense

Ändert den Lizenztyp eines Benutzers.

Parameter:

  • CertificatePath (string) – erforderlich 
  • CertificatePassword (string) – erforderlich 
  • KanBoUrl (string) – erforderlich 
  • Issuer (string) – erforderlich 
  • UserId (int) – erforderlich 
  • Id (int) – erforderlich 
  • LicenseType (UserLicenseType) – erforderlich 

Ausgabe: None 

Modelle 

BoardTemplate 

  • Id (int) 
  • Name (string) 
  • Position (int) 

User 

  • Name (string) 
  • ProfileKey (string) 
  • Email (string) 
  • Active (bool) 
  • LicenseType (UserLicenseType) 
  • Id (int) 

UserLicenseType 

  • Writer = 2 
  • Reader = 1 
  • None = 0 

War dieser Artikel hilfreich?

Kontaktieren Sie uns, wenn Sie weitere Fragen haben.