cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KjoniX
Frequent Visitor

Assign Dynamics 365 security role with PowerApps

We plan to build a powerapp which do some magic and then assign security roles to a Dynamics 365 user. 

Is it possible?

1 ACCEPTED SOLUTION

Accepted Solutions
v-yutliu-msft
Community Support
Community Support

Hi @KjoniX ,

Usually, you could Assign Dynamics 365 security role here:

https://admin.powerplatform.microsoft.com/support

Firstly choose the enironment that you want and then create a security role.

Secondly, you could enable users to different sercurity.10104.PNG

 

If you want to build an app that can manage Dynamics 365 security role, then it's a little complex.

For now, the Dynamics 365 connector only supports these functions:

Create a new record

This operation creates a new record of an entity

Create a new record

This operation creates a new record of an entity (with option sets exposed as strings)

Delete a record

This operation deletes a record from an entity collection

Get record

This operation retrieves the specified record for an entity

Get record

This operation retrieves the specified record for an entity (with option sets exposed as strings)

List records

This operation gets records for an entity

List records

This operation gets records for an entity (with option sets exposed as strings)

Update a record

This operation updates an existing record for an entity

Update a record

This operation updates an existing record for an entity (with option sets exposed as strings)

 

About changing secruity role is not included.

So you need to create a custom connector that meets your demans.

Here's a doc about how to create a custom connector for your reference:

https://docs.microsoft.com/en-us/connectors/custom-connectors/define-blank

 

 

Best regards,

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
RezaDorrani
Dual Super User II
Dual Super User II

Hi @KjoniX 

 

You would have to use the Power Platform for Admins connector to achieve roles assignments for environments

 

https://docs.microsoft.com/en-us/connectors/powerplatformforadmins/

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Wow, thanks!

But are you sure I can set Dynamics 365 security roles with Power Platform for Admins? I have read the documentation but cannot find where to apply security roles on user level.

 

Skjermbilde.PNG

RezaDorrani
Dual Super User II
Dual Super User II

@KjoniX 

 

Hmmn

That is something that you would need to test out and validate

 

I did and my conclusion so far is not possible. Please prove me wrong! 🙂

RezaDorrani
Dual Super User II
Dual Super User II

Hi @KjoniX 

 

Im no dynamics expert but Im sure there would be a powersehll way to achieve this

 

In that case, PowerApps can call a flow - flow can call an azure function or azure automation job which can run the powershell command 

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

v-yutliu-msft
Community Support
Community Support

Hi @KjoniX ,

Usually, you could Assign Dynamics 365 security role here:

https://admin.powerplatform.microsoft.com/support

Firstly choose the enironment that you want and then create a security role.

Secondly, you could enable users to different sercurity.10104.PNG

 

If you want to build an app that can manage Dynamics 365 security role, then it's a little complex.

For now, the Dynamics 365 connector only supports these functions:

Create a new record

This operation creates a new record of an entity

Create a new record

This operation creates a new record of an entity (with option sets exposed as strings)

Delete a record

This operation deletes a record from an entity collection

Get record

This operation retrieves the specified record for an entity

Get record

This operation retrieves the specified record for an entity (with option sets exposed as strings)

List records

This operation gets records for an entity

List records

This operation gets records for an entity (with option sets exposed as strings)

Update a record

This operation updates an existing record for an entity

Update a record

This operation updates an existing record for an entity (with option sets exposed as strings)

 

About changing secruity role is not included.

So you need to create a custom connector that meets your demans.

Here's a doc about how to create a custom connector for your reference:

https://docs.microsoft.com/en-us/connectors/custom-connectors/define-blank

 

 

Best regards,

 

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,869)