I have a little conundrum - a large portion of our users have set up their mailboxes to send text messages through ECP, however this is against company policy and we need to get the settings removed; we could ask users to do it themselves, but we would prefer to be able to do it in bulk on the back-end. With that being said, it turns out that the Text Messaging settings are only available for users to modify their own and not to org. admins:
Get-ManagementRoleEntry *\Clear-TextMessagingAccount
Name Role Parameters
---- ---- ----------
Clear-TextMessagingAccount MyTextMessaging {Confirm, Debug, DomainController, ErrorAction, ErrorVariab...
Get-ManagementRole MyTextMessaging | fl *scope* ImplicitRecipientReadScope : Self ImplicitRecipientWriteScope : Self ImplicitConfigReadScope : OrganizationConfig ImplicitConfigWriteScope : OrganizationConfig
How would I go about creating a role that allows this cmd-let to be run org-wide? I can't inherit from MyTextMessaging - the only role that has the cmd-let available (as the write scope would stay the same) - and unscoped roles do not allow built-in cmd-lets...
Thanks!