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
- Host: GitHub
- URL: https://github.com/martinm85/graph-api-csa
- Owner: MartinM85
- License: mit
- Created: 2025-01-14T07:54:45.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-14T08:51:05.000Z (about 1 year ago)
- Last Synced: 2025-01-23T05:20:12.300Z (about 1 year ago)
- Topics: custom-security, microsoft-graph, microsoft-graph-api, microsoft-graph-sdk
- Language: C#
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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**