Posted on

Register a web application with Azure AD Portal App Registration to connect to a Microsoft 365 tenant

PowerShell Limits

Through Powershell it is possible to connect to a Microsoft 365 tenant to perform operations on users, groups and any other element of the tenant. When you use this tool, Powershell presents you with the mask for entering your account and password. You can write accounts and passwords directly in the Powershell script but it would be a serious security compromise.

Application

An alternative is to build a software that connects directly to the Tenant through customized keys present in the Tenant itself. In other words, it is necessary to communicate to the Tenant that there is a certain application that is authorized to access the Tenant. Furthermore, for each operation that you want to perform on the Tenant it is necessary to specify the appropriate permissions. To create these applications, we recommend that you follow the excellent tutorial “.Net Core console application for calling Microsoft Graph“.  This post proposes the images present in the previous tutorial only to specify how the application must be prepared on the Microsoft Tenant.

Register a web application with Azure AD Portal App Registration

Open a browser and navigate to the Azure Portal. Login using your account. Select the resource “Azure Active Directory”. On the left side menu, select “App regitstration”. Click New registration from the current page.

On the Register an application page, specify the following values:

  • Name = Name of your Application
  • Supported account types
  • Redirect URI
    • Type = Web
    • Value = https://localhost:8080   (*)

(*) The Redirect URI value must be unique within your domain. This value can be changed at a later time and does not need to point to a realy hosted URI.

It is now necessary to store 2 values that will be used in your application:

  • Application (client) ID
  • Directory (tenant) ID

Certificates & secrets

Click Certificates & secrets.

  1. Click New client secret.
  2. On the Add a client secret dialog, specify the following values:
    • Description = Your secret’s description
    • Expires = In 1 year (for example)
  3. Click Add.

After the screen has updated with the newly created client secret copy the VALUE of the client secret. This secret string is never shown again, so make sure you copy it now.

API permissions

Click API permissions.

  • Click Add a permission
  • On the Request API permissions panel select Microsoft Graph.

  • Select Application permissions.

Now you have to choose between the permissions to authorize your app. For example, to create an application to read alla information about Tenant’s users, in the “Select permissions” search box type “User”.Select User.Read.All from the filtered list. At the end, on the API permissions content blade, click Grant admin consent for the Tenant.

Summary of the data necessary for the application

Let’s see what data your application needs to connect and operate on the Microsoft Tenant.

  • applicationId = “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”;
  • applicationSecret = “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”;
  • tenantId = “xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx”;
  • redirectUri = “https://localhost:8080”;
  • domain = “yourtenant.onmicrosoft.com”;

Permissions

  • User.Read.All : Read all users’ full profiles
  • User.ReadWrite.All : Read and write all users’ full profiles
  • Group.ReadWrite.All : Read and write all groups
  • Notes.ReadWrite.All : Read and write all OneNote notebooks

Documentation

Posted on

ERP (enterprise resource planning) SELECTION – part 1.

ERP

The Enterprise Resources Planning is a management system which integrates all relevant business processes of a company . ERP is a digital representation of how the company operates, particularly how his organization is built to make concrete the business strategies. Choosing an ERP implies the adoption by the company of a systematic approach and of an organization by process.

Procedure to selection of an ERP

1. Define the company profile and the macro processes
a. Define the Functions
2. Define the secondary processes
3. Exploration of the market and system integrators
4. First filter. The end result will be 3, maximum 5, coupled Software / System Integrator.
5. Software Demos
6. Creation of the Supply Specification
7. Define a control structure of the project
8. Selection of key users


Company profile Example

Our company , which we will call CONTOSO,  manufactures and assembles mechanical components.  The production not only involves internal business units, also makes use of external suppliers for the purchase of materials and for the execution of certain processing and/or treatment. The sales phase may be preceded by a bidding process. The purchase and production are regulated to ensure, through the traceability of objects, a proper after sales service. Contoso is active in a constant data collection in all departments / levels to ensure timely management control.

MERP

With this background , in Contoso should not be implemented an ERP system but a MERP system. Process manufacturing enterprise resource planning (process manufacturing ERP) refers to the use of enterprise resource planning (ERP) in conjunction with process manufacturing to maximize the potency of manufacturing processes. Process manufacturing is a production strategy that adds value by separating  the production process in two or more steps. When an output is generated using this process, it is impossible to distill the output back to the basic component form.

ERP for process-based manufacturing mainly operates on the basic concept of combining all the machines, tools and resources to maximize the efficiency of the manufacturing process. It saves valuable time and enhances production capacity with greater command over subcontracting, planning and inventory.

Using MERP the organization is capable of making every decision based on real information, not on predictions or assumptions. Because all reports about the process are available online, users can easily retrieve information about raw materials, what materials are used in certain processes, which material is needed for a particular process, what time the material is required, and so on.

In this specific ERP production is the most potent element of the software ; the connection between manufacturing and subcontracting, inventory, purchasing and other modules are superior and efficient.

Macro Processes

With this background we can identify five main processes:

  1. Order fulfillment
  2. Production
  3. Purchasing
  4. Quality Control
  5. Logistic

The process begins with the management  of customer order. The finished product is an assembly of parts to be manufactured or purchased. Each part is constructed using at least one raw material. The material and finished parts are stored in a warehouse where they enter and exit in a controlled manner. The production process is monitored by sampling control,  both inside the company and at the external suppliers. The finished part / product is controlled.

Posted on Leave a comment

ERP

ERP

The Enterprise Resources Planning is a management system which integrates all relevant business processes of a company . ERP is a digital representation of how the company operates, particularly how his organization is built to make concrete the business strategies. Choosing an ERP implies the adoption by the company of a systematic approach and of an organization by process.

Procedure to selection of an ERP

  1. Define the company profile and the macro processes
    1. Define the Functions
  2. Define the secondary processes
  3. Exploration of the market and system integrators
  4. First filter. The end result will be 3, maximum 5, coupled Software / System Integrator.
  5. Software Demos
  6. Creation of the Supply Specification
  7. Define a control structure of the project
  8. Selection of key users

 

We wrote this article four years ago and we do not remember if we used the sources of other texts. If an author sees one of his texts in these pages please contact us. We will remove the text or provide to the author citation.