teams presence set-preferred
Auto-generated reference
This page is generated from checked-in CLI metadata for release v0.7.0. Do not edit it by hand.
Set your preferred presence, which overrides every session's status while one exists
Synopsis
teams presence set-preferred [OPTIONS] --availability <AVAILABILITY>
Options
| Option | Value | Required | Env | Default | Description |
|---|---|---|---|---|---|
--availability | AVAILABILITY | yes | Availability: Available, Busy, DoNotDisturb, BeRightBack, Away or Offline. Graph pairs each with one activity, which is sent alongside it | ||
--expiration | EXPIRATION | no | Positive ISO 8601 duration in whole units, such as PT8H or P1D. Graph's default is P1D for Busy and DoNotDisturb and P7D for the rest |
Examples
No command-specific examples are published yet.
Exit Codes
| Code | Meaning |
|---|---|
| 0 | success |
| 1 | general error |
| 2 | invalid input |
| 3 | authentication error |
| 4 | permission denied |
| 6 | rate limited |