AXForum  
Вернуться   AXForum > Microsoft Dynamics CRM > Dynamics CRM: Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 25.03.2024, 03:59   #1  
Blog bot is offline
Blog bot
Участник
 
25,574 / 848 (80) +++++++
Регистрация: 28.10.2006
crmtipoftheday: Tip #1450: Create Dataverse app users like a boss using pac cli
Источник: https://crmtipoftheday.com/1450/crea...-using-pac-cli
==============

In another universe we did talk about Tip #545: Create non-interactive user like a boss. Since then, the product name has changed at least 27 times, Marketing Pilot and Parature came and went, Dataflex and CDS left their mark but, most importantly, we’ve got ourselves app users based on service principals.

It’s been quite a painful manual process creating those users: in Azure portal create an app registration, create a secret, add API permissions – NO, STOP DOING IT PEOPLE, IT’S NOT NEEDED, forget to copy the secret, go back 2 steps, generate new secret, switch to Dataverse admin, create an app user, assign appropriate roles (“appropriate” != “system administrator”). Switching between admin centers, tedious is the word to describe the experience.

But tedious it is no more and there is no PowerShell in sight! Behold, administrators!

pac admin create-service-principal \ -n "LOLZ App" -r "Basic User" # -n name and -r role, respectively
The result:

@georged ➜ /workspaces $ -n "LOLZ App" -r "Basic User"Connected as doug@aperturescience.clickCreating Entra ID Application 'LOLZ App'... DoneCreating Entra ID Service Principal... DoneConnected to... Candlestick MakerRegistering Application 'D4E4C8F1-9A3B-4D0A-8E7C-2E5A4F6D1B9D' with Dataverse... DoneCreating Dataverse system user and assigning role... DoneApplication Name LOLZ AppTenant Id 3F2504E0-4F89-11D3-9A0C-0305E82C3301Application Id 6B29FC40-CA47-1067-B31D-00DD010662DAService Principal Id F47AC10B-58CC-4372-A567-0E02B2C3D479Client Secret pO~8Q~Really?~Z2sdwvDwgM_HowsThatWorkingOutForYou?_aT2Client Secret Expiration 03/24/2025 09:17:05 +00:00System User Id 0e68ef5a-bfe9-ee11-a204-dead4beeff1c@georged ➜ /workspaces $
That’s it! Read Microsoft Power Platform CLI admin command group – Power Platform | Microsoft Learn as the official source of truth.

I got a bit excited and didn’t check the references before writing the above. Awesome Carl de Souza got their first. Creating Service Principals Really Easily Using Pac Cli. Unlike me, Carl has patience to produce screenshots and detailed instructions, go check it out.

The post Tip #1450: Create Dataverse app users like a boss using pac cli appeared first on Power Platform & Dynamics CRM Tip Of The Day.



Источник: https://crmtipoftheday.com/1450/crea...-using-pac-cli
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
crmtipoftheday: Tip #1430: Add Power Automate flows into solution like a boss Blog bot Dynamics CRM: Blogs 0 14.03.2022 15:11
crmtipoftheday: Tip #1402: Why you should not use Microsoft Lists/SharePoint Lists for business-critical Power Apps Blog bot Dynamics CRM: Blogs 0 17.02.2021 15:12
crmtipoftheday: Tip #1348: Convert CER to a PFX like a boss Blog bot Dynamics CRM: Blogs 0 01.05.2020 19:16
crmtipoftheday: Tip #1037: Modify data source for Word templates like a boss Blog bot Dynamics CRM: Blogs 0 06.12.2017 09:11
saurav-nav: NAV 2018 - Lots of New Objects! Blog bot NAV: Blogs 0 04.12.2017 10:11

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 09:14.
Powered by vBulletin® v3.8.5. Перевод: zCarot
Контактная информация, Реклама.