Step 1: Log into SharePoint admin account.
Step 2: Select the site in the left pane.
Step 3: Click on Sharing.
Step 4: Now click on external sharing option.
Step 5: Select the sharing option from the list as per the requirement.
Step 6: Click Save