Hi Mark,Yes it’s executed under IAM admin account let’s call it ‘admin_account’ which has all access rights and is listed in select * from usr_root_admin below code returns ‘ÞÇá€õm9F¢õ-«6¨iRæz4BŽ4Upãر’ and 0 declare @database_name nvarchar(2000)declare @command nvarchar(max)set @database_name = 'IAM'set @command = N'SELECT dbo.tsf_user() AS Tsf_User, dbo.is_authorized_usr_admin(''admin_account'') AS is_authorized_usr_admin'exec dbo.sp_execute_remote @database_name, @command best regardsRafal
It's not possible to exec dbo.sp_execute_remote 'IAM', 'insert into dbo.usr (....' to add new user as an automated task.IAM function 'is_authorized_usr_admin' is blocking sp_execute_remote to execute on IAM
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.