NRG.CalendarFinder
0.3.2
dotnet tool install --global NRG.CalendarFinder --version 0.3.2
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local NRG.CalendarFinder --version 0.3.2
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=NRG.CalendarFinder&version=0.3.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package NRG.CalendarFinder --version 0.3.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
calendar-finder
The CalendarFinder
is an app to find all calendars of a user and some user-data in an easy way without making any http
requests in ms-graph.
Installing
Install the tool globally or locally to use it. The app is shipped as a NuGet-Tool beginning with v0.3.0
dotnet tool install --global NRG.CalendarFinder
Usage
- Create a file (like mydata.json) put the
Azure Ad App
Registration and your user-identifiers as shown in the example. - Start the app with the input file (step 1) as parameter.
- The result file (like mydata.result.json) will be opened in
Visual Studio Code
automatically.
Example
Input Data As Json
{
"MsGraphClients": [
{
"TenantId": "adzure_ad_app_tenant_guid",
"ClientId": "adzure_ad_app_client_guid",
"Thumbprint": "certificate_thumbprint",
"Scopes": null
}
],
"UserIdentifier": [
"my_guid_user_identifier",
"my_user_principle_name_identifier",
"my_user_mail_identifier"
]
}
Start Process (CMD)
calfi -a mydata.json
Result Data As Json
[
{
"Input": {
"UserIdentifier": "my_input_user_identifier"
},
"User": {
"DisplayName": "output_display_name",
"PrincipalName": "output_user_principla_name",
"Mail": "output_user_mail",
"UserId": "output_user_guid",
"CalendarId": "only_or_default_calendar_id"
},
"Calendars": [
{
"Id": "calendar_id",
"Name": "calendar_name",
"Owner": "owner_mail",
"IsDefault": true
}
]
}
{
...
}
]
Needs
- Appregistration (Azure Ad App)
- Necessary Permissions on the App (Azure Ad App)
Nice To Know
Need Help In Console To Use The App?
Type --help
to see the help text and the required and optional arguments.
Supress File Opening After Finish
To not open the file in Visual Studio Code
after finish searching, use the command with the argument -e false
(e is for editor).
How Are The Users Found?
By default ms-graph
allows to find users directly by providing the user-id or user-principle-name.
That's how this order came about:
- user-id / user-principle-name
- user-mail
- user-mail-nickname*
- user-principle-nickname*
*the mail-nickname is the part left of the @ in the mail-address (nickname@provider.com → nickname)
Used Libraries
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.