Microsoft.Xrm.Data.PowerShell icon indicating copy to clipboard operation
Microsoft.Xrm.Data.PowerShell copied to clipboard

Request for Get-CrmRecordAssociation cmdlet

Open fuentej opened this issue 6 years ago • 4 comments

Would be nice to have a "Get-CrmRecordAssociation"

I am trying to see what field security profiles a given user is associated with...

If there is another way, please share.

Thanks!

fuentej avatar Feb 20 '20 18:02 fuentej

Can you do a get-crmrecords against the securityprofile entity where any given record is associated to it.

Alternatively, can you outline how you’d go about this with fetch or a api call?

seanmcne avatar Feb 24 '20 14:02 seanmcne

Not sure what you mean.

I can get the FSP, using this command.... (Get-CrmRecords -EntityLogicalName fieldsecurityprofile -FilterAttribute name -FilterOperator eq -FilterValue "All Users" -Fields * -AllRows).CrmRecords

But I don't know how to get the users that have been added to that FSP.

fuentej avatar Mar 11 '20 14:03 fuentej

@fuentej you can query systemuserprofiles intersection entity. It has mapping between users and FLPs.

sergeytunnik avatar Mar 12 '20 07:03 sergeytunnik

NICE, thanks!

fuentej avatar Mar 12 '20 15:03 fuentej