By default, when you open an IBKR GlobalTrader account it is a cash-only account. You can manually request an upgrade to a full margin account in Client Portal. From the user icon on the top right, select Settings, and in the Account Configuration section open Account Type.
Visit the IBKR website to find out more about trading on margin.