Go to the console of the server and enter “op (name)” -> (name) = your Microsoft name. If the Microsoft name contains a space, use the following spelling for the command: op “my name”. The player must be online on the server, otherwise, the command will not work. There’s also an auto-op mode, you can enable it on the server start screen. Then the first person to join the server will automatically gain operator rights.