Manage Users and Devices in your AD
This README provides an overview of the functionalities offered by the application.
- Create and Modify User Accounts: Allows users to create and modify user accounts with various attributes such as city, telephone number, etc.
- Retrieve User Attributes: Enables retrieval of user attributes like city, telephone number, etc.
- Add and Remove Users from Groups: Facilitates adding and removing users from different groups.
- Retrieve Group Memberships: Allows retrieval of group memberships for a given user.
- Check Device IP Address: Provides functionality to check the IP address of a device.
- Retrieve Device Operating System Version: Enables retrieval of the operating system version of a device.
- Check Device Status: Allows checking whether a device is disabled or locked.
- Read BitLocker Keys: Capability to read BitLocker keys for device encryption.
- Create Shared Mailboxes and Teams Groups: Allows creation of shared mailboxes and Teams groups.
- Add Users to Shared Mailboxes: Facilitates adding users to shared mailboxes.
- Utilize Azure Automation: Integration with Azure Automation for task automation.
- AutoHotKey: Used for automating keystrokes.
- PowerShell: Executing commands within the application.
- Graph API: Utilization of Graph API for interactions with Azure services.
- 256-bit Encryption: Ensures security by using 256-bit encryption for account data.
- Audit Logging: Logs all user actions for auditing purposes.
- Graphical User Interface (GUI): Offers a user-friendly interface for ease of use.
- User Documentation: Provides comprehensive user documentation for reference.
This guide will walk you through the process of creating an Azure application and configuring the application client ID in the appsettings.json file for your project.
Before you begin, make sure you have the following:
- An Azure account with sufficient permissions to create applications and manage permissions.
- Visual Studio or any text editor to edit the appsettings.json file in your project.
- Log in to the Azure portal (https://portal.azure.com).
- Navigate to Azure Active Directory.
- Click on "App registrations" and then "New registration".
- Enter a name for your application and select the appropriate account type.
- Under "Redirect URI", select the appropriate type (usually Web) and enter the URL where authentication responses should be sent.
- Click "Register" to create the application.
- Once the application is created, navigate to the "API permissions" tab.
- Click on "Add a permission" and select "Microsoft Graph".
- Choose the permissions required for your application:
- user.read
- group.read.all
- sites.readwrite.all
- files.readwrite.all
- Click "Add permissions" to grant the selected permissions to your application.
- After configuring permissions, navigate to the "Overview" tab of your application.
- Note down the "Application (client) ID". This will be used to configure the application in your project.
- Open the appsettings.json file in your project.
- Find the section where application settings are defined.
- Replace the placeholder for the "ClientId" with the Application ID obtained in Step 3.
- Create a Evelation Group and add yourself to it.
- Change the variable "_apiServiceEvelationSettings" in "MicrosoftGraphService.cs" to the GroupID of your group.
-
Login to SharePoint:
- Log in to your SharePoint account using your credentials.
-
Create a New Document Library:
- Navigate to the site where you want to create the folders.
- Click on "Site Contents" or "Documents" depending on your SharePoint version.
- Click on "New" and select "Document library".
- Name the document library as desired, e.g., "Shared Documents".
- Click on "Create" to create the document library.
-
Create Folders:
- Open the document library you just created.
- Click on "New" and select "Folder".
- Name the folder "Conf" and press Enter to create it.
- Repeat the above step to create folders for "Logs", "O365", "UAMNewUser", and "UpdateFile".
- Enter the logfiles for the user using the Application like "username.csv" in the "Logs" Folder
-
Create Config File:
- Create a file called AppConf.json in the Folder "Conf"
- Download the file AppConf.json from the reposetory
- Change it so it works for your domain
- if there are any fields you dont need let chnage the Parameter to "Unknown"
-
Connect Sharepoint to Application:
- Enter the Site and DriveID of the sharepointsite into the variables in the file MicrosoftGraphService.cs
- Save the changes to the appsettings.json file.
- Build and run your project to ensure that the application is configured correctly and able to authenticate with Azure using the provided client ID.
- Tom Stiefel