microsoftgraph / microsoftgraph/msgraph-metadata

Non-updatable properties should be specified under `NonUpdatableProperties` in the CSDL (Update-MgUserMailFolder does not change IsHidden Attribute)

Open
#469 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ToTriage
Dominant language
XSLT
Stars
166
Forks
55
Avg merge
16h 12m
Merged PRs (30d)
14

Description

Graph PowerShell is version 2.7.0

When I want to change the IsHidden attribut of a folder, I use this command:

Update-MgUserMailFolder -UserId testmailbox@domain.com -MailFolderId "AA...E1AAAA" -IsHidden:$False

I get no error message, but the IsHidden Attribute is still True.

Is this by design or is it a bug?

I want to use this feature to hide specific unwanted folders like Archive, Drafts, in shared mailboxes to make the list of folders smaller.

I only managed to create a new folder where the IsHidden Attribute is set from the beginning, but for this folder I am also unable to change the IsHidden attribute afterwards.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the CSDL metadata for mailFolder and the IsHidden property, then inspect how Update-MgUserMailFolder is generated from it. Done means the metadata represents IsHidden under NonUpdatableProperties and the generated command behavior matches that contract.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.