cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Community Support
Community Support

Re: Assign Dynamics 365 security role with PowerApps

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
Highlighted
Dual Super User II
Dual Super User II

Re: Assign Dynamics 365 security role with PowerApps

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.

Highlighted
Frequent Visitor

Re: Assign Dynamics 365 security role with PowerApps

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

Highlighted
Dual Super User II
Dual Super User II

Re: Assign Dynamics 365 security role with PowerApps

@KjoniX 

 

Hmmn

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

 

Highlighted
Frequent Visitor

Re: Assign Dynamics 365 security role with PowerApps

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

Highlighted
Dual Super User II
Dual Super User II

Re: Assign Dynamics 365 security role with PowerApps

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.

Highlighted
Community Support
Community Support

Re: Assign Dynamics 365 security role with PowerApps

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
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (5,216)