An open API service indexing awesome lists of open source software.

https://github.com/martinm85/graph-api-csa

Manage custom security attributes via Graph C# SDK
https://github.com/martinm85/graph-api-csa

custom-security microsoft-graph microsoft-graph-api microsoft-graph-sdk

Last synced: about 1 year ago
JSON representation

Manage custom security attributes via Graph C# SDK

Awesome Lists containing this project

README

          

# Graph C# SDK and security attributes

Manage custom security attributes via Graph C# SDK

## Introduction

This sample demonstrates how to

- manage attribute sets
- manage custom security attributes
- assign custom security attributes to users
- read custom security attributes from users
- assign custom security attributes to service principals
- read custom security attributes from service principals

via Graph C# SDK.

## Prerequisites

Register Entra ID applications

- Single tenant application with client secret and the `CustoSecAttributeDefinition.ReadWrite.All` application permission to manage attribute sets and custom security attributes
- Single tenant application with client secret and the `User.Read.All`, `CustomSecAttributeAssignment.ReadWrite.All` application permissions to assign security attributes to the users and read assigned attributes
- Single tenant application with client secret and the `Application.Read.All`, `CustomSecAttributeAssignment.ReadWrite.All` application permissions to assign security attributes to the service principals and read assigned attributes

You can of course combine these permissions into a single application registration.

**Be aware that attribute sets and custom security attributes cannot be removed**